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:

  1. Import all the images in myDir one at the time
  2. Run myProcessingFunction on each image
  3. Save each output image contained in myPartList as "myImageN_partP.tif" where myImageN is the name of the input file and P is the Pth component of myPartList generated for that file.
  • 1
    $\begingroup$ somewhere should be better example for duplicate, meanwhile: link $\endgroup$
    – Kuba
    Commented Oct 31, 2014 at 4:51
  • $\begingroup$ I think this is a better duplicate than the ones linked: (1122) $\endgroup$
    – Mr.Wizard
    Commented Oct 31, 2014 at 10:10
  • $\begingroup$ Sorry for the duplicates and thanks for the links! $\endgroup$
    – Andre
    Commented Nov 1, 2014 at 1:51


Browse other questions tagged or ask your own question.