2
$\begingroup$
img = Import["flower.png"];
ImageAdjust[img, 0, {.00000002, .00000009}];

I know how ImageAdjust works and it is perfect for one image, but if I have more than one image, I cannot adjust all images together. Can anyone please help me do this?

$\endgroup$
  • $\begingroup$ Adjust all images for what ? Do you want the same adjustment for all or different adjustments ? $\endgroup$ – Lotus Aug 31 '18 at 5:17
  • 1
    $\begingroup$ Is Map the answer? $\endgroup$ – Kuba Aug 31 '18 at 6:50
  • 1
    $\begingroup$ You can import all images and make a list: lst={img1, img2,...} and then use the advise of @Kuba: Map[ImageAdjust[#, 0, {.00000002, .00000009}]&, lst]. As the result all images of the list will be adjusted with the same parameters. $\endgroup$ – Alexei Boulbitch Aug 31 '18 at 7:18
  • $\begingroup$ You can also use Do[stuffTo[picture], {picture, listOfPictures}] $\endgroup$ – Gladaed Aug 31 '18 at 12:50
  • $\begingroup$ Thank you @AlexeiBoulbitch $\endgroup$ – Rony Saha Aug 31 '18 at 13:50
2
$\begingroup$

As explained in the comments, it seems you're just looking for Map.

list = {"img1.png","img2.png","img3.png"};
Map[ImageAdjust[Import[#],0,{0.0000002,0.00000009}]&, list]

You might want to read more from the Ways to Apply Functions chapter of the Elementary Introduction.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.