上QQ阅读APP看书,第一时间看更新
Converting between different data types and scaling values
This recipe tells you how to change the data type of matrix elements from uint8 to float32 and perform arithmetic operations without worrying about clamping values (and then convert everything back to uint8).