I have some microscopy photographs with different exposures. The grayscale images will be used for comparison next to each other. Currently, to 'normalize' the differences in the pictures I tweak the Curves while looking at the data in the Histogram tab (mean, median and standard deviation). I have quite a lot of pictures to correct, which is going to take a lot of time.

Is it possible to normalize the grays in those images using automation (actions, scripts etc)? For instance, I would select the mean gray value and standard deviation (optionally min and max), and the pictures would be adjusted.

Please let me know if such option exists. If not in PS, then perhaps in other software?

1 Answer 1


Consider using something like Matematica or Matlab for the job. Mathematica is pretty powerful in this department and quite easy to use.

But yes you can use match color* it is a similar histogram matching function in Photoshop. You can save the statistics, then record a action with applying match by loading the statistics. You can then use batch processing for this.

You can also do something similar with ImageMagik like using histmatch

* found in Image → Adjustments → Match Color...

  • Thanks for the Match Colours tip! Works like a charm with the batch processing!
    – Kookaburra
    Commented Mar 5, 2016 at 15:49
  • The reason why i brought up Mathematica and friends is that eventually you want to do duch things as count items etc etc and mathematica will do that for you and extends easily for your entire scientific need.
    – joojaa
    Commented Mar 5, 2016 at 17:31
  • That could be very useful in my research! I will look into it further. Thanks for the link!
    – Kookaburra
    Commented Mar 7, 2016 at 2:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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