4 #include <visp3/ustk_core/usConfig.h>
6 #if defined(VISP_HAVE_MODULE_USTK_GUI) && defined(VISP_HAVE_MODULE_USTK_GRABBER)
8 #include <visp3/ustk_grabber/usNetworkGrabberPreScan2D.h>
9 #include <visp3/ustk_gui/usImageDisplayWidgetRobotControl.h>
11 #include <QApplication>
12 #include <QMainWindow>
14 int main(
int argc,
char **argv)
17 QApplication app(argc, argv);
18 app.setApplicationName(QString(
"USTK display widget"));
27 window.setCentralWidget(widget);
31 QThread *grabbingThread =
new QThread();
42 qtGrabber->moveToThread(grabbingThread);
43 grabbingThread->start();
50 }
while (window.isVisible());
54 grabbingThread->quit();
61 std::cout <<
"You should build ustk_gui and ustk_grabber to run this tutorial" << std::endl;
Specific class to grab pre-scan frames from the ultrasound station on the network.
bool isFirstFrameAvailable()
usFrameGrabbedInfo< usImagePreScan2D< unsigned char > > * acquire()
bool initAcquisition(const usNetworkGrabber::usInitHeaderSent &header)
void setIPAddress(const std::string &s_ip)
void disconnectFromServer()