mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Resolved a compiling warning under Windows.
This commit is contained in:
parent
8feaadc69f
commit
916b92bc3b
@ -48,9 +48,9 @@ using namespace cv::ocl;
|
||||
|
||||
void cvtFrameFmt(std::vector<Mat>& input, std::vector<Mat>& output, int output_cn)
|
||||
{
|
||||
for(int i=0; i<input.size(); i++)
|
||||
for(int i = 0; i< (int)(input.size()); i++)
|
||||
{
|
||||
if(output_cn==1)
|
||||
if(output_cn == 1)
|
||||
cvtColor(input[i], output[i], COLOR_RGB2GRAY);
|
||||
else
|
||||
cvtColor(input[i], output[i], COLOR_RGB2RGBA);
|
||||
|
Loading…
Reference in New Issue
Block a user