Skip to content

Commit 334241d

Browse files
committed
Merge pull request opencv#9546 from sturkmen72:GrammaTech
2 parents e1b102e + ee6aace commit 334241d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

modules/calib3d/test/test_stereomatching.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ int CV_StereoMatchingTest::processStereoMatchingResults( FileStorage& fs, int ca
560560
{
561561
absdiff( trueRightDisp, Scalar(params.dispUnknVal), rightUnknMask );
562562
rightUnknMask = rightUnknMask < numeric_limits<float>::epsilon();
563-
assert(leftUnknMask.type() == CV_8UC1);
563+
assert(rightUnknMask.type() == CV_8UC1);
564564
}
565565

566566
// calculate errors

modules/flann/src/miniflann.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ static void createIndicesDists(OutputArray _indices, OutputArray _dists,
553553
if( !dists.isContinuous() || dists.type() != dtype ||
554554
dists.rows != rows || dists.cols < minCols || dists.cols > maxCols )
555555
{
556-
if( !indices.isContinuous() )
556+
if( !_dists.isContinuous() )
557557
_dists.release();
558558
_dists.create( rows, minCols, dtype );
559559
dists = _dists.getMat();

modules/highgui/src/window_gtk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ cvImageWidget_get_preferred_height (GtkWidget *widget, gint *minimal_height, gin
291291

292292
if(image_widget->scaled_image != NULL) {
293293
*natural_height = *minimal_height < image_widget->scaled_image->rows ?
294-
image_widget->scaled_image->cols : *minimal_height;
294+
image_widget->scaled_image->rows : *minimal_height;
295295
}
296296
else {
297297
*natural_height = *minimal_height;

0 commit comments

Comments
 (0)