how to find mean of an image

54 views (last 30 days)
Aditi
Aditi on 23 May 2011
Commented: Walter Roberson on 27 May 2018
how to find mean of an image
  3 Comments
Walter Roberson
Walter Roberson on 23 May 2011
mean() and variance() convert the values as if they were double precision, so you do not usually need to be concerned about what the original data type was.

Sign in to comment.

Accepted Answer

Wolfgang Schwanghart
Wolfgang Schwanghart on 23 May 2011
m = mean(I(:));
  2 Comments
Walter Roberson
Walter Roberson on 27 May 2018
mean() is usually calculated by taking converting the numbers to double, taking the sum and dividing by the number of elements.
However, there are is an option for mean(), 'native', that tells it not to convert the numbers to double, to use the passed-in data type for the mean calculation. That calculation uses more complicated logic.

Sign in to comment.

More Answers (1)

murk hassan memon
murk hassan memon on 27 Mar 2018
Currently i am working on blood images in order to detect the malaria.. i have to identify out the behaviour of normal and abnormal blood images for this first i have to find out the mean value of those blood images in a sense if suddenly variation occur in mean value of any image then it is said to be abnormal image right? now i am getting a confusion that whether i have to find the mean value of image or first i have to make matrix order of an image. waiting for response
  4 Comments
murk hassan memon
murk hassan memon on 5 Apr 2018
ok i got it. and will also try along with your suggestions. thank u soo much

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by