Fixed gray window for gpu stereo BP and CSBP
authorZhiwei Su <su_zhiwei@hotmail.com>
Mon, 19 Jun 2017 12:30:28 +0000 (20:30 +0800)
committerGitHub <noreply@github.com>
Mon, 19 Jun 2017 12:30:28 +0000 (20:30 +0800)
commit8bf3f6bfcb867b73dbf87ddbc955f7bc94540baa
treeb61cfa74015392b31a78217a9824f403ddeee646
parent1f4067112f1bacd0a5800ad1ecdbb0a991f9a3ea
Fixed gray window for gpu stereo BP and CSBP

compute() for BP and CSBP output 32-bit floating-point mat, and in cv::imshow() 32-bit floating-point is recognized as [0,1] and maped to [0,255], that causes gray window for BP and CSBP.
samples/gpu/stereo_match.cpp