zhaojiahai / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Problem with StDev that return NAN #253

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
i have a problem with Aforge.Imaging.Statistics and in particular with StDev. 
It return in same cases NAN value.
In particular If I try to open the image with Image Processing Lab downloaded 
from this link http://www.codeproject.com/KB/GDI-plus/ ... g_Lab.aspx , the 
standard deviation is calculated correctly. With the latest version of Image 
Processing Lab 2.7.0 instead of the standard deviation is calculated NAN. I 
checked the version that actually dell'Aforge. Net framework is different.
I can then deduce that is a problem dell'aforge. Net since the old version of 
the standard deviation is calculated correctly.

Thanks and hello

Original issue reported on code.google.com by stacch...@gmail.com on 7 Sep 2011 at 9:04

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 7 Sep 2011 at 9:57

GoogleCodeExporter commented 8 years ago
Changing algorithm for standard deviation calculation from single-pass to 
two-pass in order to minimize numerical errors.

Committed in revision 1595. Will be released in version 2.2.2.

Original comment by andrew.k...@gmail.com on 7 Sep 2011 at 8:22

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 18 Sep 2011 at 7:57