image normalization (same mean and same std)

Hello, How can i normalize two images (put then with the same mean and the same standart deviation) Thank you.

 Accepted Answer

For an approximate match, try imhistmatch() to match the histograms of the two images. Otherwise, just do simple math, something like
newImage1 = (image1-mean1)*std2/std1 + mean2;

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!