Change mean and std deviation

1 Ansicht (letzte 30 Tage)
Auryn_
Auryn_ am 3 Okt. 2015
Kommentiert: Image Analyst am 3 Okt. 2015
Hi,
I would like to transform the grey on an image to a given value of mean and std deviation, in order that the value of the pixels will be the same and when I make a superposition (mosaic) of the images the border between the two is almost indistinguible. Could anyone help me? Thanks a lot in advance!

Antworten (1)

Image Analyst
Image Analyst am 3 Okt. 2015
  4 Kommentare
Image Analyst
Image Analyst am 3 Okt. 2015
Moved here from a brand new Question (now deleted) he started:
Hi,
I have 2 images with different mean grey values. How can I change these values to the average value of both images? Thank you!
Image Analyst
Image Analyst am 3 Okt. 2015
OK, if you don't want to use imhistmatch() and can't figure out the formula, and now just want to have the same mean and don't care about the standard deviation, here it is:
mean1 = mean(image1(:));
mean2 = mean(image2(:));
newImage2 = double(image1) - mean1 + mean2;

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Support Package for USB Webcams finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by