问题描述
我正在使用nvidia nsight应用程序旋转和模糊图像。我正在使用NPP库 oDeviceDst从功能rotate的输出中填充了数据,这很好用。代码如下所示:还请注意,下面的代码在for循环中存在一定的旋转角度。
npp::ImageNPP_8u_C1 oDeviceDst(768,768);
Npp32s masksize = (Npp32s)KERNEL_LENGTH;
Npp32s anchor = (Npp32s)KERNEL_RADIUS;
NppiSize SzROI ={(int)oDeviceDst_gauss.width(),(int)oDeviceDst_gauss.height()};
std::cout << " anchor " << anchor << std::endl; std::cout << " masksize " << masksize << std::endl;
NppStatus status2 = nppiFilterRow_8u_C1R(oDeviceDst.data(),oDeviceDst.pitch(),oDeviceDst_gauss.data(),oDeviceDst_gauss.pitch(),SzROI,(Npp32s*)h_Kernel,masksize,anchor,int(sumh));
std::cerr << "status of blur is" << status2 << std::endl;
但是,一旦我运行它(在目标上远程运行),我就会得到-1000的状态。 模糊状态为-1000。
退出
有人在使用NPP库时遇到类似的问题。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)