pad_dict_to_shape#
- stimupy.utils.pad_dict_to_shape(dct, shape, pad_value=0, keys=('img', '*mask'))#
Pad images in dictionary to a resulting specified shape in pixels
- Parameters:
- Returns:
same as input dict but with larger key-arrays and updated keys for “visual_size” and “shape”
- Return type:
- Raises:
ValueError – if img.shape already exceeds shape