fixed warnings
This commit is contained in:
parent
ed1c56e063
commit
ff6f5d4d24
@ -2212,8 +2212,8 @@ void cv::calcBackProject( InputArrayOfArrays images, const std::vector<int>& cha
|
|||||||
const std::vector<float>& ranges,
|
const std::vector<float>& ranges,
|
||||||
double scale )
|
double scale )
|
||||||
{
|
{
|
||||||
Size histSize = hist.size();
|
|
||||||
#ifdef HAVE_OPENCL
|
#ifdef HAVE_OPENCL
|
||||||
|
Size histSize = hist.size();
|
||||||
bool _1D = histSize.height == 1 || histSize.width == 1;
|
bool _1D = histSize.height == 1 || histSize.width == 1;
|
||||||
size_t histdims = _1D ? 1 : hist.dims();
|
size_t histdims = _1D ? 1 : hist.dims();
|
||||||
#endif
|
#endif
|
||||||
|
@ -50,6 +50,7 @@ using namespace cv;
|
|||||||
|
|
||||||
int test_loop_times = 1; // TODO Read from command line / environment
|
int test_loop_times = 1; // TODO Read from command line / environment
|
||||||
|
|
||||||
|
#ifdef HAVE_OPENCL
|
||||||
|
|
||||||
#define DUMP_PROPERTY_XML(propertyName, propertyValue) \
|
#define DUMP_PROPERTY_XML(propertyName, propertyValue) \
|
||||||
do { \
|
do { \
|
||||||
@ -204,6 +205,7 @@ void dumpOpenCLDevice()
|
|||||||
#undef DUMP_MESSAGE_STDOUT
|
#undef DUMP_MESSAGE_STDOUT
|
||||||
#undef DUMP_PROPERTY_XML
|
#undef DUMP_PROPERTY_XML
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
Mat TestUtils::readImage(const String &fileName, int flags)
|
Mat TestUtils::readImage(const String &fileName, int flags)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user