darsia.weight#
- weight(img, weight)[source]#
Scalar or element-wise weight of images.
- Parameters:
- img
darsia.Image Image.
- weight
floatorImage Weight, either constant, or heterogeneous provided through an image with local coordinates (need to be the same as for the input image).
- img
- Returns:
ImageWeighted image.
- Raises:
NotImplementedErrorIf the weight has incompatible size and the images are 3d.
ValueErrorIf the weight is of unsopported type.