How to make equation in matlab algorithm?

2 次查看(过去 30 天)
How do I transform this equation into matlab algoritm?
eqn: where M and N are the dimensions of the image, and X is the intensity of the pixel located at row i and column j in the image map.

回答(1 个)

Jan
Jan 2017-3-23
E = sum(X(:)) / numel(X);
or
E = mean(X(:))
  1 个评论
Afiqah Abu Samah
Afiqah Abu Samah 2017-3-23
Thanks for answering my ques. the above equation is for wavelet energy. Why can't I get the same answer when I used wenergy2 function and when I used the code you wrote above?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Denoising and Compression 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by