任何人都可以告訴我關於Matrix Reshape(int newChannels,int newRows)函數。 newChannels是什麼意思?我的代碼如下Emgu CV中的Matrix.Reshape()函數
Matrix<Double> A = new Matrix<Double>(4, 4);
Matrix<Double> reshapeMatrix;
reshapeMatrix = A.Reshape(1, 16);
此代碼正常工作。但
reshapeMatrix = A.Reshape(2, 8);
此代碼運行成功,但reshapeMatrix大小不正確,我不能使用reshapeMatrix數據。
任何人都可以解釋爲什麼會發生這種情況?我如何對任何大小的矩陣使用reshape()函數?