# Does Pix4Dag support VARI algorithms?

**URL:** <https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842>\
**Category:** PIX4Dmapper Questions/Troubleshooting\
**Created:** [January 18, 2018, 7:09pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842 "2018-01-18T19:09:04Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Hensley](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Michael\_Hensley](https://community.pix4d.com/u/Michael_Hensley)\
**Post date:** [January 18, 2018, 7:09pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/1 "2018-01-18T19:09:04Z")

</div>

Does Pix4D support the VARI algorithm to evaluate plant health.

Visible Atmospherically Resistant Index. Data is collected with a standard RGB Camera / Sensor.

---

<div class="post-metadata">

**Author:** ![Selim\_Erguden](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/selim_erguden/32/337_2.png) [@Selim\_Erguden](https://community.pix4d.com/u/Selim_Erguden)\
**Post date:** [January 19, 2018, 1:51am UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/2 "2018-01-19T01:51:57Z")

</div>

Hey Michael,  
I don’t think VARI is a pre-defined formula in Pix4D however you can make your own formula in Index Calculator. I believe the formula for VARI is:  
(Green - Red)/(Green + Red - Blue)

---

<div class="post-metadata">

**Author:** ![Pedro\_Olivares](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/pedro_olivares/32/393_2.png) [@Pedro\_Olivares](https://community.pix4d.com/u/Pedro_Olivares)\
**Post date:** [June 8, 2018, 11:59pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/3 "2018-06-08T23:59:32Z")

</div>

Hello everyone;

I just tried to apply VARI formula in an RGB based proyect. When pocessed in the desktop version the algorythm seemed to work properly. However when I uploaded it to the cloud, it all went very strange, the “index map” did not show a correct VARI map.&nbsp;

Please help!

---

<div class="post-metadata">

**Author:** ![Julie\_Pichon](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/julie_pichon/32/592_2.png) [@Julie\_Pichon](https://community.pix4d.com/u/Julie_Pichon)\
**Post date:** [June 11, 2018, 11:41am UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/4 "2018-06-11T11:41:47Z")

</div>

Hi Pedro,

Could you please share the URL of the project?

---

<div class="post-metadata">

**Author:** ![Pedro\_Olivares](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/pedro_olivares/32/393_2.png) [@Pedro\_Olivares](https://community.pix4d.com/u/Pedro_Olivares)\
**Post date:** [June 12, 2018, 10:17pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/5 "2018-06-12T22:17:35Z")

</div>

Hello Julie. Here it is:&nbsp;[https://cloud.pix4d.com/ag/farm/43631/project/307479/map?shareToken=bfeaf2e5933249319803c24cc1512de8](https://cloud.pix4d.com/ag/farm/43631/project/307479/map?shareToken=bfeaf2e5933249319803c24cc1512de8)

Thank you!

---

<div class="post-metadata">

**Author:** ![Julie\_Pichon](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/julie_pichon/32/592_2.png) [@Julie\_Pichon](https://community.pix4d.com/u/Julie_Pichon)\
**Post date:** [June 13, 2018, 1:45pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/6 "2018-06-13T13:45:45Z")

</div>

If you tweak the histogram values of the VARI map, it should show correct index values as, I believe, the problem you describe is only related to visual display. You can apply a specific range in order to detect the areas on the map falling into that interval.

Does this help?

---

<div class="post-metadata">

**Author:** ![Gonzalo\_De\_Diego](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@Gonzalo\_De\_Diego](https://community.pix4d.com/u/Gonzalo_De_Diego)\
**Post date:** [June 18, 2018, 3:05pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/7 "2018-06-18T15:05:05Z")

</div>

Hi,

Interesting topic.&nbsp;

I am able to obtain RGB-Vegetation indexes in desktop version but I do not know how to upload a VARI or TGI into the cloud… Could you please let me know how to do it? Thanks ¡¡

---

<div class="post-metadata">

**Author:** ![Gonzalo\_De\_Diego](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@Gonzalo\_De\_Diego](https://community.pix4d.com/u/Gonzalo_De_Diego)\
**Post date:** [June 21, 2018, 7:21am UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/8 "2018-06-21T07:21:34Z")

</div>

Hi Pedro,

&nbsp;

Could you please let me know how you uploaded the VARI file? Thanks,

&nbsp;

Gonzalo

---

<div class="post-metadata">

**Author:** ![Cristina\_Timofte](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/cristina_timofte/32/221_2.png) [@Cristina\_Timofte](https://community.pix4d.com/u/Cristina_Timofte)\
**Post date:** [June 21, 2018, 2:28pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/9 "2018-06-21T14:28:26Z")

</div>

Hi Gonzalo,

&nbsp;

On Pix4Dfileds Cloud, at the moment it is only the results under the NDVI folder are displayed on the cloud. In case you would like to display VAri you will first have to generate it and after replacing the file in the NDVI folder.&nbsp;

 ![](https://global.discourse-cdn.com/pix4d/original/2X/d/d954ceee9f14125a21ca6d90a9e6fef75d82211f.png)&nbsp;

&nbsp;

The cloud processing works as following:

- If you upload the images directly via the **&nbsp;web uploader** , the images will be automatically processed with&nbsp;\_[Ag Multispectral Template.](https://support.pix4d.com/hc/en-us/articles/205319155-Processing-Options-Default-Templates)&nbsp;\_With this template, one is generating automatically NDVI that will further on be displayed on the Cloud.
- If you upload via the&nbsp; **Pix4D Desktop** &nbsp;application, then the cloud processing will respect the settings that you have selected within the software. Hence if with the software you have created your personalized indices&nbsp;(e.,g. VARI) and opted for their generation then&nbsp;they will be generated on the Cloud as well. However, they will not be displayed since it is only NDVI that we display at the moment. Following you will have to replace the file for visualization.&nbsp;

&nbsp;

To create your index, please see:&nbsp;[https://support.pix4d.com/hc/en-us/articles/202560489](https://support.pix4d.com/hc/en-us/articles/202560489)

To automatically generate these indices&nbsp;while step 3 runs you will have to enable them as per the example below:

 ![](https://global.discourse-cdn.com/pix4d/original/2X/e/ee32d5418c5b1fb06e4bfaa3f84f3c5d32ef6f2a.png)&nbsp;

Cheers,

Ina

&nbsp;

---

<div class="post-metadata">

**Author:** ![jzanelli](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@jzanelli](https://community.pix4d.com/u/jzanelli)\
**Post date:** [February 23, 2020, 1:50am UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/10 "2020-02-23T01:50:07Z")

</div>

In the formula given by Pix4D it´s min(1; max(-1; (GREEN − RED) / (GREEN + RED − BLUE) )) but I cannot place in mapper min nor max, and also “;” or “,”  
How do I add VARI formula?  
Thanks

---

<div class="post-metadata">

**Author:** ![momtanu.chakraborty](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/momtanu.chakraborty/32/269_2.png) [@momtanu.chakraborty](https://community.pix4d.com/u/momtanu.chakraborty)\
**Post date:** [February 25, 2020, 6:11pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/11 "2020-02-25T18:11:29Z")

</div>

@jzanelli, Pix4Dfields uses the min, max functions to clamp the values between -1 to +1. In Pix4Dmapper you will not be able to clamp the values, you will need to use the original formula for VARI: (Green - Red)/(Green + Red - Blue). You could also use any 3rd party GIS software that has min, max in their raster calculator.

---

<div class="post-metadata">

**Author:** ![jzanelli](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@jzanelli](https://community.pix4d.com/u/jzanelli)\
**Post date:** [February 28, 2020, 11:58pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/12 "2020-02-28T23:58:24Z")

</div>

OK will do

---

<div class="post-metadata">

**Author:** ![xavier77sal](https://avatars.discourse-cdn.com/v4/letter/x/e68b1a/32.png) [@xavier77sal](https://community.pix4d.com/u/xavier77sal)\
**Post date:** [January 12, 2022, 7:44pm UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/13 "2022-01-12T19:44:12Z")

</div>

Is required the reflectance values or just with the digital values is possible obtain the index?

---

<div class="post-metadata">

**Author:** ![Jose.Arnaudo](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/jose.arnaudo/32/5966_2.png) [@Jose.Arnaudo](https://community.pix4d.com/u/Jose.Arnaudo)\
**Post date:** [January 14, 2022, 9:57am UTC](https://community.pix4d.com/t/does-pix4dag-support-vari-algorithms/5842/14 "2022-01-14T09:57:18Z")

</div>

Hi,  
You can obtain it with both, if you have the digital values is not a problem.
