필터 지우기
필터 지우기

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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by