Fixing double to uchar conversion warning.

pull/2926/head
Marvin Smith 11 years ago
parent 561703ca27
commit 67e23ed972
  1. 2
      samples/cpp/tutorial_code/HighGUI/GDAL_IO/gdal-image.cpp

@ -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;
} }

Loading…
Cancel
Save