MCPcopy Create free account
hub / github.com/PRiME-project/PRiMEStereoMatch / processDM

Method processDM

DE_APP/src/PP.cpp:400–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void PP::processDM(const Mat& lImg, const Mat& rImg, Mat& lDisMap, Mat& rDisMap,
401 Mat& lValid, Mat& rValid, const int maxDis, int threads)
402{
403 // color image should be 3x3 median filtered
404 // according to weightedMedianMatlab.m from CVPR11
405
406 lrCheck(lDisMap, rDisMap, lValid, rValid);
407 //fprintf(stderr, "LR Check Done\n");
408 fillInv(lDisMap, rDisMap, lValid, rValid);
409 //fprintf(stderr, "Fill Inv Done\n");
410
411 //wgtMedian( lImg, rImg, lDisMap, rDisMap, lValid, rValid, maxDis);
412 wgtMedian_thread(lImg, lDisMap, lValid, maxDis, threads);
413 wgtMedian_thread(rImg, rDisMap, rValid, maxDis, threads);
414 //fprintf(stderr, "Weighted-Median Filter Done\n");
415 return;
416}

Callers 2

PostProcess_CPUMethod · 0.80
PostProcess_GPUMethod · 0.80

Calls 3

lrCheckFunction · 0.85
fillInvFunction · 0.85
wgtMedian_threadFunction · 0.85

Tested by

no test coverage detected