darsia.full_like#

full_like(image, fill_value, mode='shape', dtype=None)[source]#

Analog of np.full_like but for darsia.Image objects.

Parameters:
imagedarsia.Image

Input image.

fill_valuenp.ndarray | float | int

Value to fill the output image with.

modeLiteral[“shape”, “voxels”], optional

Mode of the output image. Defaults to “shape”.

dtypeOptional[StandardDtype], optional

Dtype of the output image. Defaults to None.

Returns:
darsia.Image

Output image.