Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Reduce filesize of binary thats statically linked against opencv

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?