saturate_cast<>()模板函数,用于溢出保护 //大致的原理如下 if(data<) data=; elseif(data>) data=;掩模操作:https://blog.csdn.net/qq_25343557/article/details/78654011