@@ -517,7 +517,7 @@ int readGT(String src_path,OutputArray dst)
517
517
double computeMSE (InputArray GT, InputArray src, Rect ROI)
518
518
{
519
519
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 ) );
521
521
CV_Assert ( src.rows () == GT.rows () && src.cols () == GT.cols () );
522
522
double res = 0 ;
523
523
Mat GT_ROI (GT.getMat (), ROI);
@@ -539,7 +539,7 @@ double computeMSE(InputArray GT, InputArray src, Rect ROI)
539
539
double computeBadPixelPercent (InputArray GT, InputArray src, Rect ROI, int thresh)
540
540
{
541
541
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 ) );
543
543
CV_Assert ( src.rows () == GT.rows () && src.cols () == GT.cols () );
544
544
int bad_pixel_num = 0 ;
545
545
Mat GT_ROI (GT.getMat (), ROI);
@@ -560,7 +560,7 @@ double computeBadPixelPercent(InputArray GT, InputArray src, Rect ROI, int thres
560
560
561
561
void getDisparityVis (InputArray src,OutputArray dst,double scale)
562
562
{
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 ) );
564
564
Mat srcMat = src.getMat ();
565
565
dst.create (srcMat.rows ,srcMat.cols ,CV_8UC1);
566
566
Mat& dstMat = dst.getMatRef ();
0 commit comments