Browse Source

更新 'utils.cpp'

孙武 2 days ago
parent
commit
2d98123fcc
1 changed files with 5 additions and 2 deletions
  1. 5 2
      utils.cpp

+ 5 - 2
utils.cpp

@@ -88,10 +88,13 @@ int applyInvertMask(unsigned short* input, unsigned char* pmask, int Width, int
 	{
 		if (!pmask[i])
 		{
-			output[i] += fillvalue;
+			output[i] = fillvalue;
 		}	
+		else
+		{
+			output[i] = input[i];
+		}
 	}
 
 	return 1;
 }
-