fiji / Trainable_Segmentation

Fiji library to perform image segmentation based on the Weka learning schemes
https://imagej.net/Trainable_Weka_Segmentation
GNU General Public License v3.0
106 stars 60 forks source link

Batch apply for classifier issue #77

Closed xianmin25 closed 1 year ago

xianmin25 commented 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.

xianmin25 commented 1 year ago

i found out the problem: the " on both sides of the list[i] should be removed.