Fixed regression when applying relative threshold
The relative threshold was uncorrectly applied based on the average of the convolved frame instead of the original frame
The relative threshold was uncorrectly applied based on the average of the convolved frame instead of the original frame