1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

possibility to enable /mp compiler flag from cmake

fixed MCVC warnings
This commit is contained in:
Anatoly Baksheev
2012-08-23 14:05:25 +04:00
parent 5648e49d59
commit 290030d030
9 changed files with 30 additions and 23 deletions
+2 -6
View File
@@ -63,15 +63,11 @@ namespace cv { namespace gpu { namespace device
}
}}}
float4 scalarToCudaType(const cv::Scalar& in)
static float4 scalarToCudaType(const cv::Scalar& in)
{
float4 res;
res.x = in[0]; res.y = in[1]; res.z = in[2]; res.w = in[3];
return res;
return make_float4((float)in[0], (float)in[1], (float)in[2], (float)in[3]);
}
void cv::gpu::connectivityMask(const GpuMat& image, GpuMat& mask, const cv::Scalar& lo, const cv::Scalar& hi, Stream& s)
{
CV_Assert(!image.empty());