how to write this equation in Matlab?? please help

1 view (last 30 days)
where Ig(x) is an image (matrix

Accepted Answer

Bob Thompson
Bob Thompson on 11 Feb 2019
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 Comments
Bob Thompson
Bob Thompson on 12 Feb 2019
Edited: Bob Thompson on 12 Feb 2019
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 on 12 Feb 2019
Edited: ghada sandoub on 12 Feb 2019
@ 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

Sign in to comment.

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!