From a8ead5dcf699d665fa9c217f8d740daa651ffaed Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Fri, 12 Apr 2019 13:45:04 +0100 Subject: [PATCH] Remove unused variable --- lib/CalypFrame.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/CalypFrame.cpp b/lib/CalypFrame.cpp index 7473b9a..146bc99 100644 --- a/lib/CalypFrame.cpp +++ b/lib/CalypFrame.cpp @@ -1126,7 +1126,6 @@ bool CalypFrame::toMat( cv::Mat& cvMat, bool convertToGray, bool scale, unsigned cv::Mat tmpMat( imgHeight, imgWidth, CV_MAKETYPE( cvPrecision, numChannels ) ); unsigned char* cv_data = tmpMat.data; - unsigned int cv_step = tmpMat.step; CalypPixel currPel; for( unsigned y = 0; y < imgHeight; y++ ) { @@ -1137,7 +1136,6 @@ bool CalypFrame::toMat( cv::Mat& cvMat, bool convertToGray, bool scale, unsigned for( unsigned b = 0; b < numBytes; b++ ) { unsigned char pel = currPel[ch] >> ( 8 * b ); - //*( cv_data + y * cv_step + x * numChannels * numBytes + ch * numBytes + b ) = currPel[ch] >> ( 8 * b ); *cv_data++ = pel; } }