public static INoiseFilter CreateNoiseFilter(NoiseSettings settings) { switch (settings.filtertype) { case NoiseSettings.FilterType.Rigid: { return(new RigidNoiseFilter(settings)); } case NoiseSettings.FilterType.Simple: { return(new SimpleNoiseFilter(settings)); } default: { throw new System.Exception("Unknown Noise Type: " + settings.filtertype); } } }
public SimpleNoiseFilter(NoiseSettings settings) { this.settings = settings; noise = new Noise3D(); }
public RigidNoiseFilter(NoiseSettings settings) { this.settings = settings; noise = new Noise3D(); }