fixed noise allowance to only work if the noise pixels are connected to
in rangle pixels