Fix casting from/to int/float that caused lot of compiler warnings.

This commit is contained in:
Ievgen Khvedchenia
2014-04-28 15:00:14 +03:00
parent 61f79c2632
commit f97e38d8a6
6 changed files with 582 additions and 562 deletions

View File

@@ -30,12 +30,12 @@ namespace cv
if (descriptor_size == 0)
{
int t = (6 + 36 + 120) * descriptor_channels;
return ceil(t / 8.);
return (int)ceil(t / 8.);
}
else
{
// We use the random bit selection length binary descriptor
return ceil(descriptor_size / 8.);
return (int)ceil(descriptor_size / 8.);
}
}
}