mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Fixing double to uchar conversion warning.
This commit is contained in:
parent
561703ca27
commit
67e23ed972
@ -64,7 +64,7 @@ cv::Vec<DATATYPE,N> lerp( cv::Vec<DATATYPE,N> const& minColor,
|
||||
|
||||
cv::Vec<DATATYPE,N> output;
|
||||
for( int i=0; i<N; i++ ){
|
||||
output[i] = ((1-t)*minColor[i]) + (t * maxColor[i]);
|
||||
output[i] = (uchar)(((1-t)*minColor[i]) + (t * maxColor[i]));
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user