Modified value threshold to determine shadow pixels
fixed problem in background counter number mat