mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 02:16:34 +08:00
build: GCC9 compilation
This commit is contained in:
@@ -135,13 +135,6 @@ struct GPCTrainingParams
|
|||||||
CV_Assert( check() );
|
CV_Assert( check() );
|
||||||
}
|
}
|
||||||
|
|
||||||
GPCTrainingParams( const GPCTrainingParams ¶ms )
|
|
||||||
: maxTreeDepth( params.maxTreeDepth ), minNumberOfSamples( params.minNumberOfSamples ), descriptorType( params.descriptorType ),
|
|
||||||
printProgress( params.printProgress )
|
|
||||||
{
|
|
||||||
CV_Assert( check() );
|
|
||||||
}
|
|
||||||
|
|
||||||
bool check() const { return maxTreeDepth > 1 && minNumberOfSamples > 1; }
|
bool check() const { return maxTreeDepth > 1 && minNumberOfSamples > 1; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -7,5 +7,8 @@ ocv_warnings_disable(CMAKE_CXX_FLAGS -Winconsistent-missing-override -Wsuggest-o
|
|||||||
if(CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0)
|
if(CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0)
|
||||||
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wclass-memaccess)
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wclass-memaccess)
|
||||||
endif()
|
endif()
|
||||||
|
if(CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.0)
|
||||||
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wdeprecated-copy)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(libmv)
|
add_subdirectory(libmv)
|
@@ -82,10 +82,10 @@ static KeyType hashPPF(const Vec4d& f, const double AngleStep, const double Dist
|
|||||||
(int)(f[1] / AngleStep),
|
(int)(f[1] / AngleStep),
|
||||||
(int)(f[2] / AngleStep),
|
(int)(f[2] / AngleStep),
|
||||||
(int)(f[3] / DistanceStep));
|
(int)(f[3] / DistanceStep));
|
||||||
KeyType hashKey = 0;
|
KeyType hashKey[2] = {0, 0}; // hashMurmurx64() fills two values
|
||||||
|
|
||||||
murmurHash(key.val, 4*sizeof(int), 42, &hashKey);
|
murmurHash(key.val, 4*sizeof(int), 42, &hashKey[0]);
|
||||||
return hashKey;
|
return hashKey[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*static size_t hashMurmur(uint key)
|
/*static size_t hashMurmur(uint key)
|
||||||
|
Reference in New Issue
Block a user