minor fix
This commit is contained in:
parent
ffe7bdf69c
commit
2d36ba2175
@ -49,7 +49,7 @@
|
|||||||
using namespace cv::gpu;
|
using namespace cv::gpu;
|
||||||
using namespace cv::gpu::impl;
|
using namespace cv::gpu::impl;
|
||||||
|
|
||||||
__constant__ __align__(16) double scalar_d[4];
|
__constant__ double scalar_d[4];
|
||||||
|
|
||||||
namespace mat_operators
|
namespace mat_operators
|
||||||
{
|
{
|
||||||
@ -267,7 +267,7 @@ namespace cv
|
|||||||
|
|
||||||
CopyToFunc func = tab[depth];
|
CopyToFunc func = tab[depth];
|
||||||
|
|
||||||
if (func == 0) error("Operation \'ConvertTo\' doesn't supported on your GPU model", __FILE__, __LINE__);
|
if (func == 0) cv::gpu::error("Unsupported convert operation", __FILE__, __LINE__);
|
||||||
|
|
||||||
func(mat_src, mat_dst, mask, channels);
|
func(mat_src, mat_dst, mask, channels);
|
||||||
}
|
}
|
||||||
@ -321,7 +321,7 @@ namespace cv
|
|||||||
|
|
||||||
SetToFunc_without_mask func = tab[depth];
|
SetToFunc_without_mask func = tab[depth];
|
||||||
|
|
||||||
if (func == 0) error("Operation \'ConvertTo\' doesn't supported on your GPU model", __FILE__, __LINE__);
|
if (func == 0) cv::gpu::error("Unsupported convert operation", __FILE__, __LINE__);
|
||||||
|
|
||||||
func(mat, channels);
|
func(mat, channels);
|
||||||
}
|
}
|
||||||
@ -350,7 +350,7 @@ namespace cv
|
|||||||
|
|
||||||
SetToFunc_with_mask func = tab[depth];
|
SetToFunc_with_mask func = tab[depth];
|
||||||
|
|
||||||
if (func == 0) error("Operation \'ConvertTo\' doesn't supported on your GPU model", __FILE__, __LINE__);
|
if (func == 0) cv::gpu::error("Unsupported convert operation", __FILE__, __LINE__);
|
||||||
|
|
||||||
func(mat, mask, channels);
|
func(mat, mask, channels);
|
||||||
}
|
}
|
||||||
@ -410,4 +410,4 @@ namespace cv
|
|||||||
}
|
}
|
||||||
} // namespace impl
|
} // namespace impl
|
||||||
} // namespace gpu
|
} // namespace gpu
|
||||||
} // namespace cv
|
} // namespace cv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user