fdc2rgb

dnois.utils.fdc2rgb(image: Tensor, **kwargs) Tensor

Convert an image tensor of shape (..., 3, H, W) where the 3 dimension means some “images” corresponding to Fraunhofer F, d and C lines to RGB color. In other words, shape of output tensor is (..., 3, H, W) still but the 3 dimension means RGB color.

Parameters:
  • image (Tensor) – Image tensor.

  • kwargs – Additional keyword arguments passed to wl2rgb().

Returns:

RGB image tensor.

Return type:

Tensor