2019年5月14日
摘要: 将下标转换为线性索引 将下标转换为线性索引 将下标转换为线性索引 语法 linearInd = sub2ind(matrixSize, rowSub, colSub) 语法 linearInd = sub2ind(matrixSize, rowSub, colSub) linearInd = sub 阅读全文
posted @ 2019-05-14 15:01 一杯明月 阅读(5640) 评论(0) 推荐(0)
摘要: B = imresize(A,scale) B = imresize(A,scale) 返回图像 B,它是将 A 的长宽大小缩放 scale 倍之后的图像。输入图像 A 可以是灰度、RGB 或二值图像。如果 A 有两个以上维度,则 imresize 只调整前两个维度的大小。如果 scale 在 [0 阅读全文
posted @ 2019-05-14 12:18 一杯明月 阅读(5686) 评论(0) 推荐(0)
摘要: Idx = knnsearch(X,Y) finds the nearest neighbor in X for each query point in Y and returns the indices of the nearest neighbors in Idx, a column vecto 阅读全文
posted @ 2019-05-14 00:18 一杯明月 阅读(4104) 评论(0) 推荐(0)