} else if (cls.equals("moore")) {
filter = new MooreMacro();
} else if (cls.equals("poisson")) {
filter = new PoissonMacro();
} else if (cls.equals("translation")) {
filter = new TranslationMacro();
} else if (cls.equals("poisson-translation")) {
filter = new PoissonTranslationMacro();
} else {
throw new UnknownParameterException("class");
}