I am writing a script where I would like the user to perform segmentation on one or multiple images. Usually I would use script parameters to have the user select the images to segment, however that would mean fixing the number of images to select. The way that makes the most sense to me would be to use a script parameter to set the amount of images to select, then within the script have a for loop that runs through that many iterations, each loop prompting the user to select the image to analyze.
I have looked through the Dialog and File functions with no luck, the closest function being the getDirectory function. Ideally, something like a getImageFile would work.
Does anybody know of a way I could get this to work? Thanks.