Best fit maximizing one parameter while minimizing other parameter

조회 수: 1 (최근 30일)
Abdulllah
Abdulllah 2019년 6월 24일
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