Extending the color range without using opencv::cuda

Hi,
Your solution looks optimal. May run sudo nvpmodel -m 0 and sudo jetson_clocks. With the commands the CPU cores and GPU are at max clock.