I have a directory (myDataDir
) full of images ("myImage1.tif"
, "myImage2.tif"
, ...), and I have a function (let's call it myProcessingFunction[myImage]
that gives as output myPartList
a list of images that are parts of the original source image.
What I want to do is:
- Import all the images in myDir one at the time
- Run
myProcessingFunction
on each image - Save each output image contained in
myPartList
as"myImageN_partP.tif"
wheremyImageN
is the name of the input file andP
is the Pth component ofmyPartList
generated for that file.