J'utilise AForge.net et je veux montrer dans une zone de texte la valeur de l'écart-type. Le code suivant ne fonctionne pas:Pourquoi ImageStatistics.Gray est-il nul?
AForge.Imaging.ImageStatistics stat = new AForge.Imaging.ImageStatistics(btm_1);
AForge.Math.Histogram gray = stat.Gray;
this.textB_1.Text = gray.StdDev.ToString();
Il échoue avec l'erreur suivante:
Object reference not set to an instance of an object.
Les deux gray
et stat.Gray
sont nuls.
Ce n'est pas standard * divide *. C'est la norme * déviation *. –
désolé, mon erreur – kukula