Update window_gtk.cpp

Update miniflann.cpp

Update test_stereomatching.cpp
pull/9546/head
Suleyman TURKMEN 7 years ago
parent 62c6656130
commit ee6aacee9c
  1. 2
      modules/calib3d/test/test_stereomatching.cpp
  2. 2
      modules/flann/src/miniflann.cpp
  3. 2
      modules/highgui/src/window_gtk.cpp

@ -560,7 +560,7 @@ int CV_StereoMatchingTest::processStereoMatchingResults( FileStorage& fs, int ca
{
absdiff( trueRightDisp, Scalar(params.dispUnknVal), rightUnknMask );
rightUnknMask = rightUnknMask < numeric_limits<float>::epsilon();
assert(leftUnknMask.type() == CV_8UC1);
assert(rightUnknMask.type() == CV_8UC1);
}
// calculate errors

@ -553,7 +553,7 @@ static void createIndicesDists(OutputArray _indices, OutputArray _dists,
if( !dists.isContinuous() || dists.type() != dtype ||
dists.rows != rows || dists.cols < minCols || dists.cols > maxCols )
{
if( !indices.isContinuous() )
if( !_dists.isContinuous() )
_dists.release();
_dists.create( rows, minCols, dtype );
dists = _dists.getMat();

@ -291,7 +291,7 @@ cvImageWidget_get_preferred_height (GtkWidget *widget, gint *minimal_height, gin
if(image_widget->scaled_image != NULL) {
*natural_height = *minimal_height < image_widget->scaled_image->rows ?
image_widget->scaled_image->cols : *minimal_height;
image_widget->scaled_image->rows : *minimal_height;
}
else {
*natural_height = *minimal_height;

Loading…
Cancel
Save