Yes I think I meant luminanceandydansby wrote:I certainly can make the filter copy luminance from one image to another. That should be fairly easy to do within the same algorithm, which is just mean and standard deviation of image B applied to image A. I'm not sure how to copy contrast from one image to another, I don't know how contrast can be measured, but I sure that someone has figured it out somewhere.

I got interested in this because I read about a method where the histogram was stretched into a bell-curve shape, and it was explained that that was the ideal shape for most images in terms of brightness (luminance). But the math behind it is just over my head, but should be in the neighborhood of what you're doing with the color-transfer plugin

The method described was an alternative to the normal histogram-equalize algorithm and calls it a 'gaussian redistribution of the histogram' (it's all way over my head unfortunately)
I found it on this link:
http://www.imagemagick.org/Usage/color_ ... ian_redist
If I knew more about how to do the math parts of this idea, I would've tried it in the CPP-script block (I'm not advanced enough for actual CPP, requiring Microsoft's compiler. I've tried it a few times but it's somewhat like stepping into a pool of quicksand for me; I always get stuck and find it's mostly just trouble and weird errors that rarely makes any sense to me. The script-block in photo-reactor I can work with, barely, but I just have no idea how to begin coding for this 'gaussian redistribution' idea.)
Anyway, maybe you want to look into this someday (I'd certainly be a taker of such a plugin

