can you explain me about these code?

if (nargin < 2 || nargin > 5)
mssim = -Inf;
ssim_map = -Inf;
return;
end
Thanks

 採用された回答

Image Analyst
Image Analyst 2013 年 3 月 31 日

0 投票

It is code to assign some default return arguments for a function when the user does not pass in the expected number of input arguments.

5 件のコメント

Tia
Tia 2013 年 3 月 31 日
-Inf, what is it?
Image Analyst
Image Analyst 2013 年 3 月 31 日
Negative infinity.
Tia
Tia 2013 年 3 月 31 日
oh..i got it.thanks
Image Analyst
Image Analyst 2013 年 3 月 31 日
編集済み: Image Analyst 2013 年 3 月 31 日
Great.
Yipeng Liu
Yipeng Liu 2013 年 4 月 19 日
Do you know why there are negative value in the ssim_map using the SSIM_index.m? It is not consistent to the paper description [0 1]. And how to transfer the ssim_map to [0 1]?
Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by