MATLAB生成cuda代码使用-registration_CUDA:本项目基于matlab的dftregistration函数。主要用于解决

时间:2024-06-28 11:00:44
【文件属性】:

文件名称:MATLAB生成cuda代码使用-registration_CUDA:本项目基于matlab的dftregistration函数。主要用于解决

文件大小:107KB

文件格式:ZIP

更新时间:2024-06-28 11:00:44

系统开源

MATLAB生成cuda代码使用 本项目主要用于解决由于外部因素导致的图像错位,帮助其进行矫正。 本项目的图像矫正算法: 假设有一组图像(30张),取其第一张作为模板,剩余其它图像(29张)用于匹配(跟第一张做比较)。 利用互相关算法计算待匹配图像与第一张图像的偏移量,偏移量有高偏移量和宽偏移量,分别代表需要偏移的像素点大小。 在算出其偏移量之后,对其进行偏移,偏移会产生部分像素点为0,所以需要进行裁剪,裁剪多少由用户自行决定(所以需要知道输出图像大小), 从而达到矫正的效果。 本项目的平台:Visual Studio2017 外部库:opencv_world330+CUDA10.0 工程项目介绍: registrationGPU为源代码,用于调试,调试时请使用Debug调试。 registrationGPUDll为生成链接库代码,用于生成动态链接库。 不带GPU后缀的文件夹为C++源码。 Test项目为测试DLL是否生成成功,且可用。 使用方法: 将test*.cpp文件里的图像大小和张数以及路径修改为适用于自己的。 GPU版本的函数最后输入的一个参数是同时并行处理的图像张数。 函数


【文件预览】:
registration_CUDA-main
----registrationDll()
--------registrationDll.h(765B)
--------shift.cpp(2KB)
--------stdafx.h(358B)
--------registrationDll.vcxproj.filters(2KB)
--------registrationDll.vcxproj(8KB)
--------shift.h(310B)
--------stdafx.cpp(23B)
--------registrationDll.cpp(16KB)
--------dllmain.cpp(429B)
--------targetver.h(288B)
----registrationGPU()
--------kernel.cu(25KB)
--------registrationGPU.h(838B)
--------registrationGPU.vcxproj(5KB)
--------testGPU.cpp(2KB)
----registration()
--------test.cpp(1KB)
--------shift.cpp(2KB)
--------registration.vcxproj.filters(1KB)
--------registration.cpp(16KB)
--------shift.h(310B)
--------registration.h(166B)
--------registration.vcxproj(6KB)
----Test()
--------testDll.cpp(2KB)
--------Test.vcxproj.filters(931B)
--------registrationDll.h(765B)
--------REGISTRATIONGPUDLL.dll(78KB)
--------REGISTRATIONGPUDLL.lib(2KB)
--------REGISTRATIONDLL.dll(51KB)
--------Test.vcxproj(6KB)
--------registrationGPUDll.h(820B)
--------REGISTRATIONDLL.lib(2KB)
----registrationGPUDll()
--------registrationGPUDll.vcxproj.filters(1KB)
--------registrationGPUDll.vcxproj(9KB)
--------kernel.cu(25KB)
--------stdafx.h(358B)
--------stdafx.cpp(23B)
--------dllmain.cpp(429B)
--------registrationGPUDll.h(820B)
--------targetver.h(288B)
----README.md(2KB)
----.gitignore(6KB)
----registration.sln(4KB)

网友评论