mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
fixed some GCC 4.4 warnings
This commit is contained in:
@@ -57,8 +57,7 @@ void goodFeaturesToTrack( const Mat& image, vector<Point2f>& corners,
|
||||
{
|
||||
CV_Assert( qualityLevel > 0 && minDistance >= 0 && maxCorners >= 0 );
|
||||
|
||||
if( mask.data )
|
||||
CV_Assert( mask.type() == CV_8UC1 && mask.size() == image.size() );
|
||||
CV_Assert( mask.empty() || (mask.type() == CV_8UC1 && mask.size() == image.size()) );
|
||||
|
||||
Mat eig, tmp;
|
||||
if( useHarrisDetector )
|
||||
|
||||
@@ -117,8 +117,7 @@ static void histPrepareImages( const Mat* images, int nimages, const int* channe
|
||||
Size& imsize, vector<double>& uniranges )
|
||||
{
|
||||
int i, j, c;
|
||||
if(!channels)
|
||||
CV_Assert( nimages == dims );
|
||||
CV_Assert( channels != 0 || nimages == dims );
|
||||
|
||||
imsize = images[0].size();
|
||||
int depth = images[0].depth(), esz1 = (int)images[0].elemSize1();
|
||||
|
||||
Reference in New Issue
Block a user