mirror of
https://github.com/opencv/opencv.git
synced 2026-10-02 04:02:40 +03:00
Fixing double to uchar conversion warning.
This commit is contained in:
1 parent
561703ca27
commit
67e23ed972
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user