Is it better to use default template types, like:
viewer << DGtal::UpdateImagePosition<>(1, DGtal::Viewer3D<>::yDirection, 0.0,  50.0, 0.0);