Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

use either:

for( int i=0; i<aCvMat.rows; i++){
    for( int j=0; j<aCvMat.cols; j++){
        cout << aCvMat.at<float>(i,j) << endl;
    }
}

or :

for( int i=0; i<aCvMat.rows; i++){
    const float* Mi = aCvMat.ptr<float>(i);
    for( int j=0; j<aCvMat.cols; j++){
        cout << Mi[j] << endl;
    }
}

use either:

for( int i=0; i<aCvMat.rows; i++){
    for( int j=0; j<aCvMat.cols; j++){
        cout << aCvMat.at<float>(i,j) aCvMat.at<double>(i,j) << endl;
    }
}

or :

for( int i=0; i<aCvMat.rows; i++){
    const float* double* Mi = aCvMat.ptr<float>(i);
aCvMat.ptr<double>(i);
    for( int j=0; j<aCvMat.cols; j++){
        cout << Mi[j] << endl;
    }
}