Reduce filesize of binary thats statically linked against opencv

asked 2012-12-04 08:08:22 -0500

gagabla gravatar image

Using the cv::Mat class from opencv in my application increases the filesize of the binary by about 900 kb:

// Nothing but these two lines increases binary filesize by 900 kb
cv::Mat m;
m.create(1, 1, CV_32F);

I am using Visual Studio 2010 express, and tried the /Gy setting but it didn't change the filesize at all.

Is there a way to only get the functionality i am using in my code, when compiling against opencv?

edit retag flag offensive close merge delete