Alpha now uses max value in merge and not average value

This commit is contained in:
Morippi
2022-02-22 11:54:24 +01:00
parent d39912e235
commit 6948e4e437
@@ -614,7 +614,7 @@ public class DataPointUtil
{
numberOfChildren++;
allVoid = false;
tempAlpha += getAlpha(data) * getAlpha(data);
tempAlpha = Math.max(getAlpha(data),tempAlpha);
tempRed += getRed(data) * getRed(data);
tempGreen += getGreen(data) * getGreen(data);
tempBlue += getBlue(data) * getBlue(data);
@@ -635,7 +635,6 @@ public class DataPointUtil
//we have at least 1 child
if (size != 1)
{
tempAlpha = tempAlpha / numberOfChildren;
tempRed = tempRed / numberOfChildren;
tempGreen = tempGreen / numberOfChildren;
tempBlue = tempBlue / numberOfChildren;