center_slice#

center_slice(current_shape, new_shape)[source]#

Extract the center slice of current_shape to retrieve new_shape.