how to write this equation in Matlab?? please help

1 回表示 (過去 30 日間)
ghada sandoub
ghada sandoub 2019 年 2 月 11 日
編集済み: ghada sandoub 2019 年 8 月 14 日
where Ig(x) is an image (matrix

採用された回答

Bob Thompson
Bob Thompson 2019 年 2 月 11 日
sigma = (I/eta).*sum(sqrt(ln((Imax(range)+Imin(range))./(Imax(range)-Imin(range))));
Something like this. Your 'range' is going to be the different values of x you want. Most everything else should just be filling in variables.
  3 件のコメント
Bob Thompson
Bob Thompson 2019 年 2 月 12 日
編集済み: Bob Thompson 2019 年 2 月 12 日
You can apply the summation across multiple x values by defining your 'range' to cover those values. sum() just adds up all the values of the interior array.
You can define a range in matlab using index notation.
ghada sandoub
ghada sandoub 2019 年 2 月 12 日
編集済み: ghada sandoub 2019 年 2 月 12 日
@ Bob Nbob
i applied this form for the equation
sigma = (I/eta).*sum((log(( double(Imax) + double(Imin )) ./ ( double(Imax) - double(Imin ))) ).^ -0.5) ;
where : Imax and Imin are matrices with arguments of type uint8 , but i met this error in matlab
and when i used * instead of .* i met this error
can you help me to fix this error

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by