local threshold is only based within the bundary