- 博客(2)
- 收藏
- 关注
原创 my Cpp&R image convolution
@[my Cpp&R image convolution] cpp代码实现黑白照片的处理 #include <RcppArmadillo.h> // [[Rcpp::depends(RcppArmadillo)]] using namespace arma; int mirrorIndex_c(int fetchI, int length){ // code for mirror index at boundary if(fetchI<0) fetchI=-1-fe
2020-12-06 11:25:44 110
原创 一维向量卷积+局部平滑+边界溢出处理
一维向量卷积 cpp一维向量卷积 #include <RcppArmadillo.h> // [[Rcpp::depends(RcppArmadillo)]] #include <cmath> using namespace arma; // [[Rcpp::export]] double convolve_c(vec x,vec y){ int n=x.n_elem; double s=0; for(int i=0;i<n;i++){ s += x(i)*
2020-12-06 11:24:45 649
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人