src.utils.util.convert_arr_to_img

convert_arr_to_img(stimulus_img_arr)[source]

Change the range of a normalized image to [0-255].

Parameters

stimulus_img_arr – Normalized image array.

Returns

Un-normalized image array.

Return type

np.ndarray

Raises

ValueError – If stimulus_img_arr is not a numpy array.

Return type

ndarray