added OpenGL support to highgui under WIN32
This commit is contained in:
@@ -206,7 +206,7 @@ namespace cv { namespace gpu { namespace device
|
||||
}
|
||||
break;
|
||||
default:
|
||||
cv::gpu::error("Unsupported channels count", __FILE__, __LINE__);
|
||||
cv::gpu::error("Unsupported channels count", __FILE__, __LINE__, "bilateral_filter_caller");
|
||||
}
|
||||
|
||||
if (stream != 0)
|
||||
|
@@ -314,7 +314,7 @@ namespace cv { namespace gpu { namespace device
|
||||
else if (nthreads == 512)
|
||||
normalize_hists_kernel_many_blocks<512, nblocks><<<grid, threads>>>(block_hist_size, img_block_width, block_hists, threshold);
|
||||
else
|
||||
cv::gpu::error("normalize_hists: histogram's size is too big, try to decrease number of bins", __FILE__, __LINE__);
|
||||
cv::gpu::error("normalize_hists: histogram's size is too big, try to decrease number of bins", __FILE__, __LINE__, "normalize_hists");
|
||||
|
||||
cudaSafeCall( cudaGetLastError() );
|
||||
|
||||
|
@@ -291,7 +291,7 @@ namespace cv { namespace gpu { namespace device
|
||||
MergeFunction merge_func = merge_func_tbl[merge_func_id];
|
||||
|
||||
if (merge_func == 0)
|
||||
cv::gpu::error("Unsupported channel count or data type", __FILE__, __LINE__);
|
||||
cv::gpu::error("Unsupported channel count or data type", __FILE__, __LINE__, "merge_caller");
|
||||
|
||||
merge_func(src, dst, stream);
|
||||
}
|
||||
@@ -498,7 +498,7 @@ namespace cv { namespace gpu { namespace device
|
||||
SplitFunction split_func = split_func_tbl[split_func_id];
|
||||
|
||||
if (split_func == 0)
|
||||
cv::gpu::error("Unsupported channel count or data type", __FILE__, __LINE__);
|
||||
cv::gpu::error("Unsupported channel count or data type", __FILE__, __LINE__, "split_caller");
|
||||
|
||||
split_func(src, dst, stream);
|
||||
}
|
||||
|
@@ -346,7 +346,7 @@ namespace cv { namespace gpu { namespace device
|
||||
int winsz2 = winsz >> 1;
|
||||
|
||||
if (winsz2 == 0 || winsz2 >= calles_num)
|
||||
cv::gpu::error("Unsupported window size", __FILE__, __LINE__);
|
||||
cv::gpu::error("Unsupported window size", __FILE__, __LINE__, "stereoBM_GPU");
|
||||
|
||||
//cudaSafeCall( cudaFuncSetCacheConfig(&stereoKernel, cudaFuncCachePreferL1) );
|
||||
//cudaSafeCall( cudaFuncSetCacheConfig(&stereoKernel, cudaFuncCachePreferShared) );
|
||||
|
@@ -336,7 +336,7 @@ namespace cv { namespace gpu { namespace device
|
||||
case 1: init_data_cost<T, 1><<<grid, threads, 0, stream>>>(h, w, level); break;
|
||||
case 3: init_data_cost<T, 3><<<grid, threads, 0, stream>>>(h, w, level); break;
|
||||
case 4: init_data_cost<T, 4><<<grid, threads, 0, stream>>>(h, w, level); break;
|
||||
default: cv::gpu::error("Unsupported channels count", __FILE__, __LINE__);
|
||||
default: cv::gpu::error("Unsupported channels count", __FILE__, __LINE__, "init_data_cost_caller_");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,7 +355,7 @@ namespace cv { namespace gpu { namespace device
|
||||
case 1: init_data_cost_reduce<T, winsz, 1><<<grid, threads, smem_size, stream>>>(level, rows, cols, h); break;
|
||||
case 3: init_data_cost_reduce<T, winsz, 3><<<grid, threads, smem_size, stream>>>(level, rows, cols, h); break;
|
||||
case 4: init_data_cost_reduce<T, winsz, 4><<<grid, threads, smem_size, stream>>>(level, rows, cols, h); break;
|
||||
default: cv::gpu::error("Unsupported channels count", __FILE__, __LINE__);
|
||||
default: cv::gpu::error("Unsupported channels count", __FILE__, __LINE__, "init_data_cost_reduce_caller_");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -533,7 +533,7 @@ namespace cv { namespace gpu { namespace device
|
||||
case 1: compute_data_cost<T, 1><<<grid, threads, 0, stream>>>(disp_selected_pyr, data_cost, h, w, level, nr_plane); break;
|
||||
case 3: compute_data_cost<T, 3><<<grid, threads, 0, stream>>>(disp_selected_pyr, data_cost, h, w, level, nr_plane); break;
|
||||
case 4: compute_data_cost<T, 4><<<grid, threads, 0, stream>>>(disp_selected_pyr, data_cost, h, w, level, nr_plane); break;
|
||||
default: cv::gpu::error("Unsupported channels count", __FILE__, __LINE__);
|
||||
default: cv::gpu::error("Unsupported channels count", __FILE__, __LINE__, "compute_data_cost_caller_");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -553,7 +553,7 @@ namespace cv { namespace gpu { namespace device
|
||||
case 1: compute_data_cost_reduce<T, winsz, 1><<<grid, threads, smem_size, stream>>>(disp_selected_pyr, data_cost, level, rows, cols, h, nr_plane); break;
|
||||
case 3: compute_data_cost_reduce<T, winsz, 3><<<grid, threads, smem_size, stream>>>(disp_selected_pyr, data_cost, level, rows, cols, h, nr_plane); break;
|
||||
case 4: compute_data_cost_reduce<T, winsz, 4><<<grid, threads, smem_size, stream>>>(disp_selected_pyr, data_cost, level, rows, cols, h, nr_plane); break;
|
||||
default: cv::gpu::error("Unsupported channels count", __FILE__, __LINE__);
|
||||
default: cv::gpu::error("Unsupported channels count", __FILE__, __LINE__, "compute_data_cost_reduce_caller_");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -66,7 +66,7 @@
|
||||
|
||||
namespace cv { namespace gpu
|
||||
{
|
||||
void error(const char *error_string, const char *file, const int line, const char *func = "");
|
||||
void error(const char *error_string, 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 = "")
|
||||
|
@@ -76,7 +76,7 @@ namespace cv { namespace gpu { namespace device
|
||||
return mask.ptr(y)[x] != 0;
|
||||
}
|
||||
|
||||
const PtrStepb mask;
|
||||
PtrStepb mask;
|
||||
};
|
||||
|
||||
struct MaskCollection
|
||||
|
Reference in New Issue
Block a user