Ask Your Question

Revision history [back]

just to add: I print every 3 seconds one line of my cv::Mat encoded as 16UC1 as my video-feed has @30fps

    int count; cv::Mat dImg;
    if(count == 90){
        for(int i = 0; i<dImg.cols;i++){
            cout<<" "<<unsigned(dImg.at<uchar>(240,i));
        }
        count = 0; 
    }   
    count++;