mirror of
https://github.com/opencv/opencv.git
synced 2026-10-01 04:03:49 +03:00
samples: repair viz tutorial
This commit is contained in:
1 parent
5346870920
commit
8184535de1
4 files changed
+31
-5
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user