网站没有收录怎么办,中国建设传媒网,杭州网站设计推荐柚米,网页游戏维京传奇我想使用MATLAB的bagOfFeatures()函數。但它需要以imageSet或imageDataStore的形式輸入。我想運行的代碼如下#xff1a;如何以imageSet或imageDataStore的形式向MATLAB中的BagOfFeatures()函數提供輸入#xff1f;Dataset D:\dsktop\kinect_leap_dataset\acquisitions;thre…我想使用MATLAB的bagOfFeatures()函數。但它需要以imageSet或imageDataStore的形式輸入。我想運行的代碼如下如何以imageSet或imageDataStore的形式向MATLAB中的BagOfFeatures()函數提供輸入Dataset D:\dsktop\kinect_leap_dataset\acquisitions;thresh1 0;thresh2 20;k dir(fullfile(Dataset,\P*\G*\*_depth.png));kf {k(~[k.isdir]).folder};kn {k(~[k.isdir]).name};for j1:length(k)% Applying thresholding to the original imagefull_name horzcat(kf{j},filesep,kn{j});image imread(full_name);image_bin1 (image thresh2);image_bin2 (thresh1 image);image_bin abs(image_bin2- image_bin1);sequence{i} image_bin;end% Bag of Featuresbag bagOfFeatures(sequence);但「順序」是細胞類等bagOfFeatures()是給我的錯誤。所以我想這一點Dataset D:\dsktop\kinect_leap_dataset\acquisitions;imgFolder fullfile(Dataset);imgSets imageSet(imgFolder, recursive);imgSets.Description但是現在的問題是怎麼做的處理(閾值)對保存在imgSets圖像。此外處理後如何將所有「image_bin」圖像保存在imageSet類中以便我可以將它們作爲BagOfFeatures()函數的輸入。2017-07-28Prachi