Commit 67e23ed9 authored by Marvin Smith's avatar Marvin Smith

Fixing double to uchar conversion warning.

parent 561703ca
...@@ -64,7 +64,7 @@ cv::Vec<DATATYPE,N> lerp( cv::Vec<DATATYPE,N> const& minColor, ...@@ -64,7 +64,7 @@ cv::Vec<DATATYPE,N> lerp( cv::Vec<DATATYPE,N> const& minColor,
cv::Vec<DATATYPE,N> output; cv::Vec<DATATYPE,N> output;
for( int i=0; i<N; i++ ){ 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; return output;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment