4 #include <visp3/ustk_core/usConfig.h>
6 #if (defined(USTK_HAVE_QT5) || defined(USTK_HAVE_VTK_QT)) && \
7 (defined(VISP_HAVE_X11) || defined(VISP_HAVE_GDI) || defined(VISP_HAVE_OPENCV))
9 #include <QApplication>
10 #include <QtCore/QStringList>
11 #include <QtCore/QThread>
13 #include <visp3/ustk_core/usMHDSequenceWriter.h>
14 #include <visp3/ustk_grabber/usNetworkGrabberPreScan3D.h>
16 #include <visp3/gui/vpDisplayGDI.h>
17 #include <visp3/gui/vpDisplayOpenCV.h>
18 #include <visp3/gui/vpDisplayX.h>
20 int main(
int argc,
char **argv)
23 QApplication app(argc, argv);
30 if (qApp->arguments().contains(QString(
"--output"))) {
32 qApp->arguments().at(qApp->arguments().indexOf(QString(
"--output")) + 1).toStdString());
43 bool captureRunning =
true;
47 std::cout <<
"init success" << std::endl;
50 std::cout <<
"waiting ultrasound initialisation..." << std::endl;
55 grabbedFrame = qtGrabber->
acquire();
57 std::cout <<
"MAIN THREAD received volume No : " << grabbedFrame->
getVolumeCount() << std::endl;
62 }
while (captureRunning);
70 std::cout <<
"You should intall Qt5 (with wigdets and network modules), and display X to run this tutorial"
Specific class to grab pre-scan volumes from the ultrasound station on the network.
bool isFirstFrameAvailable()
usVolumeGrabbedInfo< usImagePreScan3D< unsigned char > > * acquire()
void activateRecording(std::string path)
bool initAcquisition(const usNetworkGrabber::usInitHeaderSent &header)
void setIPAddress(const std::string &s_ip)
Class to store additionnal informations arriving on the network with ultrasound volumes grabbed,...
quint32 getVolumeCount() const