What is the requirement of opinionScores for fitbrisque?

조회 수: 1 (최근 30일)
John
John 2024년 2월 23일
댓글: Walter Roberson 2024년 3월 2일
In the example:
the opinionScores is set to random numbers in the range of [0 100], no problem. However, when modifing this to any identical values in the range [0 100], such as
opinionScores = 50*ones(1,size(imds.Files,1))
it showed error:
model = fitbrisque(imds,opinionScores')
Error using brisqueModel
Expected Alpha to be nonempty.
Error in brisqueModel>validateAlpha (line 298)
validateattributes(Alpha,images.internal.iptnumerictypes,{'nonempty','real', 'column' ...
Error in brisqueModel (line 135)
validateAlpha(Alpha);
Error in brisqueModel.computeBRISQUEModel (line 222)
obj = brisqueModel(svrmdl.Alpha, svrmdl.Bias, svrmdl.SupportVectors, svrmdl.KernelParameters.Scale);
Error in fitbrisque (line 87)
model = brisqueModel.computeBRISQUEModel(options.IMDS, options.SCORES);
How to implement the opinionScores values other than random?
Thanks.

답변 (1개)

Walter Roberson
Walter Roberson 2024년 2월 29일
It looks to me as if that should only happen if imds is empty.
  댓글 수: 6
John
John 2024년 3월 2일
In this case, how to set the values other than random?
Walter Roberson
Walter Roberson 2024년 3월 2일
If even one of the opinionScores is set differently by at least 0.25 then it works.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by