im2gray
将 RGB 图像转换为灰度图像
https://ww2.mathworks.cn/help/matlab/ref/im2gray.html
im2bw 和 imbinarize
将图片转换为二值图
在 matlab2018 中建议用 imbinarize 来将图片转换为二值图,其参数必须为灰度图。
在 matlab2016 中,只有 im2bw 函数,其参数可以是灰度图或 RGB 图。
https://blog.youkuaiyun.com/qq_36793268/article/details/89076234
img = readimage(imds,I)
从数据存储 imds 读取第 I 个图像文件并返回图像数据 img
https://ww2.mathworks.cn/help/matlab/ref/matlab.io.datastore.imagedatastore.readimage.html
extractHOGFeatures
提取定向梯度 (HOG) 特征的直方图
https://www.mathworks.com/help/vision/ref/extracthogfeatures.html?searchHighlight=extractHOGFeatures&s_tid=srchtitle_extractHOGFeatures_1
numel函数
用于计算数组中满足指定条件的元素个数
confusionmat
计算分类问题的混淆矩阵
https://www.mathworks.com/help/stats/confusionmat.html?s_tid=doc_ta