{"id":39452,"date":"2025-05-23T18:13:42","date_gmt":"2025-05-23T10:13:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/39452.html"},"modified":"2025-05-23T18:13:42","modified_gmt":"2025-05-23T10:13:42","slug":"opencv-cuda%e6%a8%a1%e5%9d%97%e4%b8%ad%e7%9a%84%e7%9f%a9%e9%98%b5%e7%ae%97%e6%9c%af%e8%bf%90%e7%ae%97-%e5%88%9b%e5%bb%ba%e5%8d%b7%e7%a7%af%e6%93%8d%e4%bd%9c%e5%af%b9%e8%b1%a1%e7%9a%84%e5%b7%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/39452.html","title":{"rendered":"OpenCV CUDA\u6a21\u5757\u4e2d\u7684\u77e9\u9635\u7b97\u672f\u8fd0\u7b97------\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5 cv::cuda::createConvolution"},"content":{"rendered":"<ul>\n<li><font size=\"4\"> \u64cd\u4f5c\u7cfb\u7edf&#xff1a;ubuntu22.04<\/font><\/li>\n<li><font size=\"4\"> OpenCV\u7248\u672c&#xff1a;OpenCV4.9<\/font><\/li>\n<li><font size=\"4\"> IDE:Visual Studio Code<\/font><\/li>\n<li><font size=\"4\"> \u7f16\u7a0b\u8bed\u8a00&#xff1a;C&#043;&#043;11<\/font><\/li>\n<\/ul>\n<h3>\u7b97\u6cd5\u63cf\u8ff0<\/h3>\n<p>createConvolution\u51fd\u6570\u662fOpenCV CUDA \u6a21\u5757\u4e2d\u7528\u4e8e\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5\u3002\u5b83\u8fd4\u56de\u4e00\u4e2a\u6307\u5411 cv::cuda::Convolution \u63a5\u53e3\u7684\u667a\u80fd\u6307\u9488&#xff08;cv::Ptr&#xff09;&#xff0c;\u8be5\u63a5\u53e3\u53ef\u4ee5\u6267\u884c\u9ad8\u6548\u7684 GPU \u5377\u79ef\u64cd\u4f5c\u3002<\/p>\n<h3>\u51fd\u6570\u539f\u578b<\/h3>\n<p>cv<span class=\"token operator\">::<\/span>Ptr<span class=\"token operator\">&lt;<\/span>cv<span class=\"token operator\">::<\/span>cuda<span class=\"token operator\">::<\/span>Convolution<span class=\"token operator\">&gt;<\/span> cv<span class=\"token operator\">::<\/span>cuda<span class=\"token operator\">::<\/span><span class=\"token function\">createConvolution<\/span><br \/>\n<span class=\"token punctuation\">(<\/span><br \/>\ncv<span class=\"token operator\">::<\/span>Size user_block_size <span class=\"token operator\">&#061;<\/span> cv<span class=\"token operator\">::<\/span><span class=\"token function\">Size<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<h3>\u53c2\u6570\u8bf4\u660e<\/h3>\n<table>\n<tr>\u53c2\u6570\u540d\u7c7b\u578b\u9ed8\u8ba4\u503c\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>user_block_size<\/td>\n<td>cv::Size<\/td>\n<td align=\"left\">cv::Size()&#xff08;\u5373\u81ea\u52a8\u9009\u62e9&#xff09;<\/td>\n<td align=\"left\">\u53ef\u9009\u53c2\u6570&#xff0c;\u6307\u5b9a\u5728 GPU \u4e0a\u6267\u884c\u5377\u79ef\u65f6\u4f7f\u7528\u7684\u7ebf\u7a0b\u5757\u5927\u5c0f&#xff08;block size&#xff09;\u3002\u5982\u679c\u4e0d\u8bbe\u7f6e&#xff0c;\u5219\u7531 OpenCV \u81ea\u52a8\u9009\u62e9\u6700\u4f18\u503c\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u529f\u80fd\u8bf4\u660e<\/h3>\n<p>\u8be5\u51fd\u6570\u4f1a\u6839\u636e\u5f53\u524d\u8bbe\u5907\u73af\u5883\u548c\u6027\u80fd\u4f18\u5316\u7b56\u7565&#xff0c;\u52a8\u6001\u9009\u62e9\u5e76\u5b9e\u4f8b\u5316\u4e00\u4e2a\u5177\u4f53\u7684\u5377\u79ef\u5b9e\u73b0\u7c7b&#xff08;\u5982\u57fa\u4e8e FFT \u6216\u76f4\u63a5\u5377\u79ef\u7b97\u6cd5&#xff09;&#xff0c;\u7136\u540e\u8fd4\u56de\u5176\u63a5\u53e3\u6307\u9488\u3002<\/p>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u6307\u9488\u8c03\u7528 convolve(\u2026) \u65b9\u6cd5\u8fdb\u884c\u5377\u79ef\u8fd0\u7b97&#xff1a;<\/p>\n<p>cv<span class=\"token operator\">::<\/span>Ptr<span class=\"token operator\">&lt;<\/span>cv<span class=\"token operator\">::<\/span>cuda<span class=\"token operator\">::<\/span>Convolution<span class=\"token operator\">&gt;<\/span> conv <span class=\"token operator\">&#061;<\/span> cv<span class=\"token operator\">::<\/span>cuda<span class=\"token operator\">::<\/span><span class=\"token function\">createConvolution<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\nconv<span class=\"token operator\">-&gt;<\/span><span class=\"token function\">convolve<\/span><span class=\"token punctuation\">(<\/span>src<span class=\"token punctuation\">,<\/span> kernel<span class=\"token punctuation\">,<\/span> dst<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h3>\u4ee3\u7801\u793a\u4f8b<\/h3>\n<p>include <span class=\"token operator\">&lt;<\/span>iostream<span class=\"token operator\">&gt;<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;opencv2\/cudaarithm.hpp&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;opencv2\/opencv.hpp&gt;<\/span><\/span><\/p>\n<p><span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u8bfb\u53d6\u56fe\u50cf\u5e76\u4e0a\u4f20\u5230 GPU<\/span><br \/>\n    cv<span class=\"token operator\">::<\/span>Mat h_img <span class=\"token operator\">&#061;<\/span> cv<span class=\"token operator\">::<\/span><span class=\"token function\">imread<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token string\">&#034;\/media\/dingxin\/data\/study\/OpenCV\/sources\/images\/Lenna.png&#034;<\/span><span class=\"token punctuation\">,<\/span> cv<span class=\"token operator\">::<\/span>IMREAD_GRAYSCALE <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span> h_img<span class=\"token punctuation\">.<\/span><span class=\"token function\">empty<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        std<span class=\"token operator\">::<\/span>cerr <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034;Image load failed!&#034;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> std<span class=\"token operator\">::<\/span>endl<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u5c06\u56fe\u50cf\u8f6c\u6362\u4e3a\u5355\u901a\u9053 32 \u4f4d\u6d6e\u70b9\u6570\u683c\u5f0f<\/span><br \/>\n    cv<span class=\"token operator\">::<\/span>Mat h_img_float<span class=\"token punctuation\">;<\/span><br \/>\n    h_img<span class=\"token punctuation\">.<\/span><span class=\"token function\">convertTo<\/span><span class=\"token punctuation\">(<\/span> h_img_float<span class=\"token punctuation\">,<\/span> CV_32F <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    cv<span class=\"token operator\">::<\/span>cuda<span class=\"token operator\">::<\/span>GpuMat d_img<span class=\"token punctuation\">;<\/span><br \/>\n    d_img<span class=\"token punctuation\">.<\/span><span class=\"token function\">upload<\/span><span class=\"token punctuation\">(<\/span> h_img_float <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u4e0a\u4f20\u8f6c\u6362\u540e\u7684\u56fe\u50cf<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u5b9a\u4e49\u5377\u79ef\u6838&#xff08;\u4f8b\u5982 Sobel x \u65b9\u5411&#xff09;<\/span><br \/>\n    cv<span class=\"token operator\">::<\/span>Mat kernel <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span> cv<span class=\"token operator\">::<\/span>Mat_<span class=\"token operator\">&lt;<\/span> <span class=\"token keyword\">float<\/span> <span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token number\">3<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">3<\/span> <span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">1<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    cv<span class=\"token operator\">::<\/span>cuda<span class=\"token operator\">::<\/span>GpuMat d_kernel<span class=\"token punctuation\">;<\/span><br \/>\n    d_kernel<span class=\"token punctuation\">.<\/span><span class=\"token function\">upload<\/span><span class=\"token punctuation\">(<\/span> kernel <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u521b\u5efa\u5377\u79ef\u5bf9\u8c61&#xff08;\u4f7f\u7528\u9ed8\u8ba4 block size&#xff09;<\/span><br \/>\n    cv<span class=\"token operator\">::<\/span>Ptr<span class=\"token operator\">&lt;<\/span> cv<span class=\"token operator\">::<\/span>cuda<span class=\"token operator\">::<\/span>Convolution <span class=\"token operator\">&gt;<\/span> conv <span class=\"token operator\">&#061;<\/span> cv<span class=\"token operator\">::<\/span>cuda<span class=\"token operator\">::<\/span><span class=\"token function\">createConvolution<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u8f93\u51fa\u77e9\u9635<\/span><br \/>\n    cv<span class=\"token operator\">::<\/span>cuda<span class=\"token operator\">::<\/span>GpuMat d_result<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u6267\u884c\u5377\u79ef\u64cd\u4f5c&#xff08;false \u8868\u793a\u5377\u79ef&#xff1b;true \u8868\u793a\u4e92\u76f8\u5173&#xff09;<\/span><br \/>\n    conv<span class=\"token operator\">-&gt;<\/span><span class=\"token function\">convolve<\/span><span class=\"token punctuation\">(<\/span> d_img<span class=\"token punctuation\">,<\/span> d_kernel<span class=\"token punctuation\">,<\/span> d_result<span class=\"token punctuation\">,<\/span> <span class=\"token boolean\">false<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u4e0b\u8f7d\u7ed3\u679c<\/span><br \/>\n    cv<span class=\"token operator\">::<\/span>Mat h_result<span class=\"token punctuation\">;<\/span><br \/>\n    d_result<span class=\"token punctuation\">.<\/span><span class=\"token function\">download<\/span><span class=\"token punctuation\">(<\/span> h_result <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u5f52\u4e00\u5316\u663e\u793a<\/span><br \/>\n    cv<span class=\"token operator\">::<\/span>Mat h_result_normalized<span class=\"token punctuation\">;<\/span><br \/>\n    h_result<span class=\"token punctuation\">.<\/span><span class=\"token function\">convertTo<\/span><span class=\"token punctuation\">(<\/span> h_result_normalized<span class=\"token punctuation\">,<\/span> CV_8U<span class=\"token punctuation\">,<\/span> <span class=\"token number\">255.0<\/span> <span class=\"token operator\">\/<\/span> h_result<span class=\"token punctuation\">.<\/span>rows <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u7b80\u5355\u5f52\u4e00\u5316\u4ee5\u9002\u5e94\u663e\u793a\u8303\u56f4<\/span><br \/>\n    cv<span class=\"token operator\">::<\/span><span class=\"token function\">imshow<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token string\">&#034;GPU Convolution Result&#034;<\/span><span class=\"token punctuation\">,<\/span> h_result_normalized <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    cv<span class=\"token operator\">::<\/span><span class=\"token function\">waitKey<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token number\">0<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>\u8fd0\u884c\u7ed3\u679c<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250523101341-68304a552723c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb398\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf3\u6b21\u3002createConvolution\u51fd\u6570\u662fOpenCV CUDA \u6a21\u5757\u4e2d\u7528\u4e8e\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5\u3002\u5b83\u8fd4\u56de\u4e00\u4e2a\u6307\u5411 cv::cuda::Convolution \u63a5\u53e3\u7684\u667a\u80fd\u6307\u9488\uff08cv::Ptr\uff09\uff0c\u8be5\u63a5\u53e3\u53ef\u4ee5\u6267\u884c\u9ad8\u6548\u7684 GPU \u5377\u79ef\u64cd\u4f5c\u3002<\/p>\n","protected":false},"author":2,"featured_media":39451,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1460,50],"topic":[],"class_list":["post-39452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-opencv","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OpenCV CUDA\u6a21\u5757\u4e2d\u7684\u77e9\u9635\u7b97\u672f\u8fd0\u7b97-\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5 cv::cuda::createConvolution - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/39452.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OpenCV CUDA\u6a21\u5757\u4e2d\u7684\u77e9\u9635\u7b97\u672f\u8fd0\u7b97-\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5 cv::cuda::createConvolution - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb398\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf3\u6b21\u3002createConvolution\u51fd\u6570\u662fOpenCV CUDA \u6a21\u5757\u4e2d\u7528\u4e8e\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5\u3002\u5b83\u8fd4\u56de\u4e00\u4e2a\u6307\u5411 cv::cuda::Convolution \u63a5\u53e3\u7684\u667a\u80fd\u6307\u9488\uff08cv::Ptr\uff09\uff0c\u8be5\u63a5\u53e3\u53ef\u4ee5\u6267\u884c\u9ad8\u6548\u7684 GPU \u5377\u79ef\u64cd\u4f5c\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/39452.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-23T10:13:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250523101341-68304a552723c.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39452.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/39452.html\",\"name\":\"OpenCV CUDA\u6a21\u5757\u4e2d\u7684\u77e9\u9635\u7b97\u672f\u8fd0\u7b97-\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5 cv::cuda::createConvolution - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-23T10:13:42+00:00\",\"dateModified\":\"2025-05-23T10:13:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/39452.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/39452.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39452.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OpenCV CUDA\u6a21\u5757\u4e2d\u7684\u77e9\u9635\u7b97\u672f\u8fd0\u7b97------\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5 cv::cuda::createConvolution\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OpenCV CUDA\u6a21\u5757\u4e2d\u7684\u77e9\u9635\u7b97\u672f\u8fd0\u7b97-\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5 cv::cuda::createConvolution - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/39452.html","og_locale":"zh_CN","og_type":"article","og_title":"OpenCV CUDA\u6a21\u5757\u4e2d\u7684\u77e9\u9635\u7b97\u672f\u8fd0\u7b97-\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5 cv::cuda::createConvolution - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb398\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf3\u6b21\u3002createConvolution\u51fd\u6570\u662fOpenCV CUDA \u6a21\u5757\u4e2d\u7528\u4e8e\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5\u3002\u5b83\u8fd4\u56de\u4e00\u4e2a\u6307\u5411 cv::cuda::Convolution \u63a5\u53e3\u7684\u667a\u80fd\u6307\u9488\uff08cv::Ptr\uff09\uff0c\u8be5\u63a5\u53e3\u53ef\u4ee5\u6267\u884c\u9ad8\u6548\u7684 GPU \u5377\u79ef\u64cd\u4f5c\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/39452.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-23T10:13:42+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250523101341-68304a552723c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/39452.html","url":"https:\/\/www.wsisp.com\/helps\/39452.html","name":"OpenCV CUDA\u6a21\u5757\u4e2d\u7684\u77e9\u9635\u7b97\u672f\u8fd0\u7b97-\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5 cv::cuda::createConvolution - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-23T10:13:42+00:00","dateModified":"2025-05-23T10:13:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/39452.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/39452.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/39452.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"OpenCV CUDA\u6a21\u5757\u4e2d\u7684\u77e9\u9635\u7b97\u672f\u8fd0\u7b97------\u521b\u5efa\u5377\u79ef\u64cd\u4f5c\u5bf9\u8c61\u7684\u5de5\u5382\u65b9\u6cd5 cv::cuda::createConvolution"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=39452"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39452\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/39451"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=39452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=39452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=39452"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=39452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}