Merge pull request #849 from alalek:warnings

pull/453/merge
Alexander Alekhin 8 years ago
commit cfe8155da5
  1. 8
      modules/hdf/src/hdf5.cpp
  2. 2
      modules/xfeatures2d/src/pct_signatures/grayscale_bitmap.cpp

@ -433,8 +433,8 @@ void HDF5Impl::dscreate( const int rows, const int cols, const int type,
String dslabel, const int compresslevel,
const vector<int>& dims_chunks ) const
{
CV_Assert( &dims_chunks[0] == NULL || dims_chunks.size() == 2 );
dscreate( rows, cols, type, dslabel, compresslevel, &dims_chunks[0] );
CV_Assert( dims_chunks.empty() || dims_chunks.size() == 2 );
dscreate( rows, cols, type, dslabel, compresslevel, dims_chunks.empty() ? NULL : &(dims_chunks[0]) );
}
void HDF5Impl::dscreate( const int rows, const int cols, const int type,
@ -466,10 +466,10 @@ void HDF5Impl::dscreate( const vector<int>& sizes, const int type,
String dslabel, const int compresslevel,
const vector<int>& dims_chunks ) const
{
CV_Assert( &dims_chunks[0] == NULL || dims_chunks.size() == sizes.size() );
CV_Assert( dims_chunks.empty() || dims_chunks.size() == sizes.size() );
const int n_dims = (int) sizes.size();
dscreate( n_dims, &sizes[0], type, dslabel, compresslevel, &dims_chunks[0] );
dscreate( n_dims, &sizes[0], type, dslabel, compresslevel, dims_chunks.empty() ? NULL : &(dims_chunks[0]) );
}
void HDF5Impl::dscreate( const int n_dims, const int* sizes, const int type,

@ -110,7 +110,7 @@ namespace cv
}
}
// Prepare the preallocated contrast matrix for contrast-entropy computations
mCoOccurrenceMatrix.resize(1 << (mBitsPerPixel * 2)); // mCoOccurrenceMatrix size = maxPixelValue^2
mCoOccurrenceMatrix.resize((int)(1 << (mBitsPerPixel * 2))); // mCoOccurrenceMatrix size = maxPixelValue^2
}

Loading…
Cancel
Save