vreg.full_like#

vreg.full_like(v: Volume3D, fill_value)[source]#

Return a new volume with same shape and affine as v, filled with fill_value.

Parameters:
  • v (int or tuple of ints) – Shape of the new array, e.g., (2, 3) or 2.

  • fill_value (float) – value to fill the array.

Returns:

vreg.Volume3D with fill_value values.

Return type:

Volume3D