××××××××××××××××××××××××××××××××××××××××××
Cvscalar imgmean, imgstd;
Double imgmax, imgmin;
Cvavgsdv (IMG, & imgmean, & imgstd );
Cvminmaxloc (IMG, & imgmin, & imgmax, null, null );
Printf ("mean: % f std: % F max: % F, Min: % F \ n", imgmean. val [0], imgstd. val [0], imgmax, imgmin );
××××××××××××××××××××××××××××××××××××××××××× ×××
1. cvminmaxloc (image,&
Minvalue,&
Maxvalue,&
Minlocation,&
Maxlocation );
Find the data of the maximum and minimum values in the image or a group of data, and the location of the maximum and minimum values.
The first parameter is an iplimage structure or a cvmat structure. The second parameter is a minimum value of double type data, the third parameter is a maximum value of double type data, and the fourth parameter is a cvpoint structure, the fifth reference number is the cvpoint structure at the maximum output position. You can enter NULL for unnecessary information.
2. cvavgsdv (IMG, & imgmean, & imgstd)