noise detector - gradients