rgb2centered_yuv

horizon_plugin_pytorch.rgb2centered_yuv(input: Tensor, swing: str = 'studio')

Convert color space.

Convert images from RGB format to centered YUV444 BT.601

  • Parameters:
    • input – input image in RGB format, ranging 0 to 255
    • swing – “studio” for YUV studio swing (Y: -112 to 107, U, V: -112 to 112). “full” for YUV full swing (Y, U, V: -128 to 127). default is “studio”
  • Returns: centered YUV image
  • Return type: Tensor