我创建了一个类:
class MyMatrix
{
public:
MyMatrix();
MyMatrix(const cv::Mat& m);
MyMatrix operator -(const MyMatrix mm);
MatrixXf* operator [] (int n ) const;
int getChannel () ;
MatrixXf* getChannelElem(int channel)const;
cv::Mat convertToMat()const;
~MyMatrix();
private :
MatrixXf* image[MAXCHANNEL];
int channelOfImage;
};
但编译器报告内存不足,分配168729字节。系统是windows 7 64bit,qt的版本是Qt 5.2.1版本的本征是Eigen3.2.1。有谁知道原因?谢谢!!