added GPU implementation of morphology functions (using NPP) and tests for it.

added npp_error function
added check_and_treat_gpu_exception function for tests_gpu
This commit is contained in:
Anatoly Baksheev
2010-09-17 15:28:59 +00:00
parent 97f2972fc0
commit 1387bfcde0
9 changed files with 535 additions and 6 deletions

View File

@@ -59,6 +59,7 @@ namespace cv
namespace gpu
{
extern "C" void error( const char *error_string, const char *file, const int line, const char *func = "");
extern "C" void npp_error( int error, const char *file, const int line, const char *func = "");
static inline void ___cudaSafeCall(cudaError_t err, const char *file, const int line, const char *func = "")
{
@@ -69,7 +70,7 @@ namespace cv
static inline void ___nppSafeCall(NppStatus err, const char *file, const int line, const char *func = "")
{
if (err < 0)
cv::gpu::error("NPP Error", file, line, func);
cv::gpu::npp_error(err, file, line, func);
}
}
}