minor changes in the gpu stereo sample
This commit is contained in:
parent
c4a8ae5931
commit
0545e780f8
@ -51,7 +51,8 @@ struct App
|
|||||||
string text() const
|
string text() const
|
||||||
{
|
{
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
ss << "(" << p.method_str() << ") FPS: " << setiosflags(ios::left) << setprecision(4) << work_fps;
|
ss << "(" << p.method_str() << ") FPS: " << setiosflags(ios::left)
|
||||||
|
<< setprecision(4) << work_fps;
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
@ -79,7 +80,7 @@ int main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
cout << "Usage: stereo_match_gpu\n"
|
cout << "Usage: stereo_match_gpu\n"
|
||||||
<< "\t-l <left_view> -r <right_view> # must be rectified\n"
|
<< "\t-l <left_view> -r <right_view> # must be rectified\n"
|
||||||
<< "\t-m <stereo_match_method> # bm | bp | csbp\n";
|
<< "\t-m <stereo_match_method> # BM | BP | CSBP\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
App app(Params::read(argc, argv));
|
App app(Params::read(argc, argv));
|
||||||
@ -239,7 +240,7 @@ void App::handleKey(char key)
|
|||||||
break;
|
break;
|
||||||
case 'p': case 'P':
|
case 'p': case 'P':
|
||||||
printParams();
|
printParams();
|
||||||
break;
|
break;
|
||||||
case 'g': case 'G':
|
case 'g': case 'G':
|
||||||
if (left.channels() == 1 && p.method != Params::BM)
|
if (left.channels() == 1 && p.method != Params::BM)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user