A generic interpolator for multi-label images