Closed xianmin25 closed 1 year ago
hello, i'm working on the batch apply for classfier, but it seems that the segmentation cann't call the code with "list[i]", or it is my code wrong?
dir_processing = getDirectory("Choose a Directory to proess") list = getFileList(dir_processing); for(i = 0; i < list.length; i++) { call("trainableSegmentation.Weka_Segmentation.applyClassifier", "C:\Temp\2023-02-06", "list[i]", "showResults=true", "storeResults=true", "probabilityMaps=true", "C:\Temp\output"); }
Thank you for your help.
i found out the problem: the " on both sides of the list[i] should be removed.
hello, i'm working on the batch apply for classfier, but it seems that the segmentation cann't call the code with "list[i]", or it is my code wrong?
dir_processing = getDirectory("Choose a Directory to proess") list = getFileList(dir_processing); for(i = 0; i < list.length; i++) { call("trainableSegmentation.Weka_Segmentation.applyClassifier", "C:\Temp\2023-02-06", "list[i]", "showResults=true", "storeResults=true", "probabilityMaps=true", "C:\Temp\output"); }
Thank you for your help.