Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image statistics reports negative mean value for big images #27

Closed
GoogleCodeExporter opened this issue Jun 22, 2015 · 7 comments
Closed

Comments

@GoogleCodeExporter
Copy link

In the case of big images (around 4000x3000) images statistics calculates 
incorrect mean value, which is negative.

Original issue reported on code.google.com by andrew.k...@gmail.com on 12 Sep 2007 at 4:43

@GoogleCodeExporter
Copy link
Author

Original comment by andrew.k...@gmail.com on 13 Sep 2007 at 4:22

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

AForge.Math.Statistics.Mean() was fixed to use double for mean calculation 
instead 
of int.

SVN revision - 345, will be released in AForge.NET 1.5.0

Original comment by andrew.k...@gmail.com on 13 Sep 2007 at 4:25

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by andrew.k...@gmail.com on 13 Sep 2007 at 4:27

  • Changed state: Verified

@GoogleCodeExporter
Copy link
Author

Original comment by andrew.k...@gmail.com on 19 May 2008 at 6:08

  • Changed state: Released

@GoogleCodeExporter
Copy link
Author

The mean and standard deviation calculations are still incorrect for larger 
images. It seems to work fine for 1024x1024 or less, but I get incorrect values 
for 1280x1024 grayscale images.

Original comment by carrasm...@gmail.com on 18 Jul 2011 at 5:18

@GoogleCodeExporter
Copy link
Author

Problem confirmed with this image.

Original comment by br...@sistemasmart.com.br on 14 Apr 2014 at 1:29

Attachments:

@GoogleCodeExporter
Copy link
Author

Updated calculation of mean in AForge.Math.Statistics to use double precision 
numbers internally to avoid integers' overflow.

Committed in revision 1730.

Original comment by andrew.k...@gmail.com on 23 Apr 2014 at 7:41

  • Changed state: Fixed
  • Added labels: Project-Math
  • Removed labels: Project-Imaging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant