modify region growing bilateral filter