Remove unused variable
This commit is contained in:
1 parent
35dcb020e6
commit
a8ead5dcf6
1 file changed
-2
@@ -1126,7 +1126,6 @@ bool CalypFrame::toMat( cv::Mat& cvMat, bool convertToGray, bool scale, unsigned
|
|||||||
cv::Mat tmpMat( imgHeight, imgWidth, CV_MAKETYPE( cvPrecision, numChannels ) );
|
cv::Mat tmpMat( imgHeight, imgWidth, CV_MAKETYPE( cvPrecision, numChannels ) );
|
||||||
|
|
||||||
unsigned char* cv_data = tmpMat.data;
|
unsigned char* cv_data = tmpMat.data;
|
||||||
unsigned int cv_step = tmpMat.step;
|
|
||||||
CalypPixel currPel;
|
CalypPixel currPel;
|
||||||
for( unsigned y = 0; y < imgHeight; y++ )
|
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++ )
|
for( unsigned b = 0; b < numBytes; b++ )
|
||||||
{
|
{
|
||||||
unsigned char pel = currPel[ch] >> ( 8 * 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;
|
*cv_data++ = pel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user