2016-07-20 15:53:23 -0600 | received badge | ● Supporter (source) |
2016-07-20 13:07:17 -0600 | commented answer | Use of Mat in cvAvgSdv gives error Thanks! That worked great! I guess my googling and stackoverflow results are turning up examples with combinations of c and c++ code. I suppose most of the code is being migrated to be c++ code? |
2016-07-20 12:23:26 -0600 | asked a question | Use of Mat in cvAvgSdv gives error I am using VS2015, c++, and openCV 3.1 I am trying to calculate the mean and standard deviation of an image stored in a Mat using the cvAvgSdv function. My code is: This compiles but throws an exception when I run my program (I really wish VS explained more what went wrong versus giving some useless memory address). Why wouldn't this code work? My work-around has been to convert gray_img to an IplImage with the following: Any insight would be appreciated! |