Cannot Access Mean Values
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have computed mean and standart deviation values of a region in the image. The code: Mat img = imread ( "a.jpg" ); Mat hsv1 ; Mat mean , stdev ; cvtColor ( img , hsv1 , CV_BGR2HSV ); cv :: meanStdDev ( hsv1 , mean , stdev , superpixel_mask ); cout << "mean: " << mean << endl << "standard deviation: " << stdev << endl ; The output is: mean : [ 150.8399251737039 ; 103.6980224478888 ; 226.161411010155 ] standard deviation : [ 23.98981564590477 ; 46.73491195049309 ; 34.41166394765997 ] I would like to access those numbers. I wrote