correct morphology compilation, add median, homotopy, histogramCounter