# how to find mean of an image

54 views (last 30 days)

Show older comments

Aditi
on 23 May 2011

Commented: Walter Roberson
on 27 May 2018

how to find mean of an image

##### 3 Comments

Walter Roberson
on 23 May 2011

### Accepted Answer

Wolfgang Schwanghart
on 23 May 2011

m = mean(I(:));

##### 2 Comments

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.

### More Answers (1)

murk hassan memon
on 27 Mar 2018

##### 4 Comments

murk hassan memon
on 5 Apr 2018

ok i got it. and will also try along with your suggestions. thank u soo much

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!