Low level visual equalization of images

1 次查看(过去 30 天)
Hi all,
I'm conducting an experiment using visual stimuli in an fMRI. It is important that all stimuli have the same low level visual parameters i.e. Contrast and Brightness ( all images are greyscaled)
How can this be done in Matlab?
Thanks!
Jonathan

采纳的回答

Ashish Uthama
Ashish Uthama 2012-4-5
You could try using histeq to equalize the histogram of two images.
I was about to say its hard to quantify 'contrast' objectively, but decided to search.. and found this. Some of those definitions needs additional specifications like foreground/background which is pretty specific to the types of images you plan to use.

更多回答(1 个)

Jurgen
Jurgen 2012-11-15
I'm assuming the resolutions are identical. If images have different content it's hard to give them equal parameters. One could say histogram A is 10% flatter than histogram B and maybe 15% wider. But the surface areas are equal by definition.
If you shape the histograms identically, by definition the contrast and brightness will be equal for both images, but one may look a lot worse than the other (e.g. if equalizing: you may turn 1 'shade' of white on a flower into 5, whereas a rainbow may look more natural).

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by