Best fit maximizing one parameter while minimizing other parameter

1 次查看(过去 30 天)
I have two images reference and other is test. I apply model on the ref image to create test images and find out PSNR and AMBE. The model has one parameter 'a' which I am varing. How to find out best 'a' while maximinzing PSNR and minimizing AMBE? In this code I am using multiplication model.
ref=imread('img1.jpg')
a=[1 2 3 4 5 6 7 8];
for i=1: length(a)
test=a(i).*ref;
psnrimg(i)=psnr(ref,test);
AMBE(i)=abs(mean(ref)-mean(test))
end
f=fit(psnrimg,AMBE,'poly5');
%some code here to select value 'a'

回答(0 个)

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by