How can I open a data stack using a beanshell script?
import ij.IJ; import trainableSegmentation.WekaSegmentation; // import images image = IJ.openImage("C:/Users/Lenovo/Desktop/GitHub/Segmentation/Fiji.app/data/testdata/original/1200.tif"); labels = IJ.openImage("C:/Users/Lenovo/Desktop/GitHub/Segmentation/Fiji.app/data/testdata/ground_truth/1200.tif"); nSamplesToUse = 2;
The above code can open just one image but I need to open an entire stack. I am pretty sure its something really silly. Can someone help me out with this?