MSUtils.general.resize_image.resize_image#
- MSUtils.general.resize_image.resize_image(data_array, scale=None, target_resolution=None)#
resizes a 3D data array by a given scale factor or to a target resolution.
Parameters: - data_array: numpy.ndarray
The input 3D data array to be resized.
- scale: list, optional
The scale factor to be applied along each dimension. If provided, ‘target_resolution’ is ignored.
- target_resolution: list, optional
The target resolution of the resized array. Used only if ‘scale’ is not provided.
Returns: - resized_image: numpy.ndarray
The resized and smoothed 3D data array.