Skip to content

Commit a8670a9

Browse files
author
Leonardo Brás
committed
Typos
1 parent 0ea0278 commit a8670a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ximgproc/src/disparity_filters.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ int readGT(String src_path,OutputArray dst)
517517
double computeMSE(InputArray GT, InputArray src, Rect ROI)
518518
{
519519
CV_Assert( !GT.empty() && (GT.depth() == CV_16S || GT.depth() == CV_32F) && (GT.channels() == 1) );
520-
CV_Assert( !src.empty() && (src.depth() == CV_16S || GT.depth() == CV_32F) && (src.channels() == 1) );
520+
CV_Assert( !src.empty() && (src.depth() == CV_16S || src.depth() == CV_32F) && (src.channels() == 1) );
521521
CV_Assert( src.rows() == GT.rows() && src.cols() == GT.cols() );
522522
double res = 0;
523523
Mat GT_ROI (GT.getMat(), ROI);
@@ -539,7 +539,7 @@ double computeMSE(InputArray GT, InputArray src, Rect ROI)
539539
double computeBadPixelPercent(InputArray GT, InputArray src, Rect ROI, int thresh)
540540
{
541541
CV_Assert( !GT.empty() && (GT.depth() == CV_16S || GT.depth() == CV_32F) && (GT.channels() == 1) );
542-
CV_Assert( !src.empty() && (src.depth() == CV_16S || GT.depth() == CV_32F) && (src.channels() == 1) );
542+
CV_Assert( !src.empty() && (src.depth() == CV_16S || src.depth() == CV_32F) && (src.channels() == 1) );
543543
CV_Assert( src.rows() == GT.rows() && src.cols() == GT.cols() );
544544
int bad_pixel_num = 0;
545545
Mat GT_ROI (GT.getMat(), ROI);
@@ -560,7 +560,7 @@ double computeBadPixelPercent(InputArray GT, InputArray src, Rect ROI, int thres
560560

561561
void getDisparityVis(InputArray src,OutputArray dst,double scale)
562562
{
563-
CV_Assert( !src.empty() && (src.depth() == CV_16S || GT.depth() == CV_32F) && (src.channels() == 1) );
563+
CV_Assert( !src.empty() && (src.depth() == CV_16S || src.depth() == CV_32F) && (src.channels() == 1) );
564564
Mat srcMat = src.getMat();
565565
dst.create(srcMat.rows,srcMat.cols,CV_8UC1);
566566
Mat& dstMat = dst.getMatRef();

0 commit comments

Comments
 (0)