1 #include <visp3/ustk_core/usConfig.h>
3 #ifdef USTK_HAVE_VTK_QT
5 #include <visp3/ustk_core/us.h>
6 #include <visp3/ustk_gui/usResliceMatrixViewer.h>
8 int main(
int argc,
char **argv)
10 std::string mhd_filename;
12 for (
int i = 0; i < argc; i++) {
13 if (std::string(argv[i]) ==
"--input")
14 mhd_filename = std::string(argv[i + 1]);
15 else if (std::string(argv[i]) ==
"--help") {
16 std::cout <<
"\nUsage: " << argv[0] <<
" [--input <3D volume.mhd>] [--help]\n" << std::endl;
22 if (mhd_filename.empty()) {
24 if (!env_ipath.empty())
25 mhd_filename = env_ipath +
"/post-scan/3D_mhd/volume.mhd";
28 std::cout <<
"You should set USTK_DATASET_PATH environment var to access to ustk dataset" << std::endl;
34 QApplication app(argc, argv);
44 int main() { std::cout <<
"Install vtk with qt4 or qt5 support to run this tutorial." << std::endl; }
Graphical main window containing 4 vtk views.
VISP_EXPORT std::string getDataSetPath()