samples: repair viz tutorial
This commit is contained in:
@@ -4,6 +4,14 @@
|
||||
* @author Ozan Cagri Tonkal
|
||||
*/
|
||||
|
||||
#ifndef USE_VTK
|
||||
#include <iostream>
|
||||
int main()
|
||||
{
|
||||
std::cout << "This sample requires direct compilation with VTK. Stop" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
#include <opencv2/viz.hpp>
|
||||
#include <opencv2/viz/widget_accessor.hpp>
|
||||
#include <iostream>
|
||||
@@ -111,3 +119,4 @@ int main()
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
@@ -41,7 +41,7 @@ int main()
|
||||
cout << "First event loop is over" << endl;
|
||||
|
||||
/// Access window via its name
|
||||
viz::Viz3d sameWindow = viz::get("Viz Demo");
|
||||
viz::Viz3d sameWindow = viz::getWindowByName("Viz Demo");
|
||||
|
||||
/// Start event loop
|
||||
sameWindow.spin();
|
||||
|
Reference in New Issue
Block a user