detector: two versions of centroid usage

A: Memory(3) -> Sum -> Centroid
B: Centroid -> Memory(3) -> Mean