||
matlab:
1. sub2ind: 把坐标变成索引 index,eg: [fxo,fyo] = meshgrid(); InsideFindices = sub2ind(size(I1),fyi, fxi);--n*1
2. setdiff: setdiff(x2,x1,'rows') 把x2中包含x1的行删除
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-5-13 00:27
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社