Image Processing: Change RMS keeping Mean Constant
古いコメントを表示
I'm trying to find a program that will help with image processing for vision experiments. Specifically, I need the mean of the image to remain constant, but I want to change the RMS contrast to different levels. Is there a program out there to help with this?
I've tried a number of different approaches but they're not working reliably with larger contrasts.
Thanks in advance for your help!
回答 (1 件)
Image Analyst
2013 年 12 月 12 日
0 投票
I would think that the rand() function should help you immensely.
4 件のコメント
Emily
2013 年 12 月 12 日
Image Analyst
2013 年 12 月 12 日
What is your reference image?
squaredDifferenceImage = (testImage - referenceImage) .^ 2;
meanSquaredError = mean(squaredDifferenceImage(:));
rms = sqrt(meanSquaredError);
Emily
2013 年 12 月 12 日
Image Analyst
2013 年 12 月 12 日
編集済み: Image Analyst
2013 年 12 月 12 日
An RMS is composed of two signals. What are your two signals? Is one just a uniform image with the mean of the image?
referenceImage = mean(testImage) * ones(size(referenceImage));
???
カテゴリ
ヘルプ センター および File Exchange で Get Started with Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!