UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
#include <visp3/ustk_core/usSequenceWriter.h>
Public Member Functions | |
usSequenceWriter () | |
virtual | ~usSequenceWriter () |
void | close () |
double | getFrameRate () const |
void | saveImage (const ImageType &image, uint64_t timestamp=0) |
void | setFirstFrameIndex (long firstIndex) |
void | setFrameRate (double frameRate) |
void | setImageFileName (const std::string &imageFileName) |
void | setSequenceFileName (const std::string &sequenceFileName) |
void | close () |
void | close () |
void | close () |
Writing of sequences of ultrasound images.
This class is used to write ultrasound images from a sequence.
Definition at line 63 of file usSequenceWriter.h.
usSequenceWriter< ImageType >::usSequenceWriter |
Default constructor.
Definition at line 113 of file usSequenceWriter.h.
|
virtual |
Destructor.
Definition at line 121 of file usSequenceWriter.h.
void usSequenceWriter< ImageType >::close |
Sequence closing : writes sequence settings in the header.
Definition at line 224 of file usSequenceWriter.h.
|
inline |
Definition at line 229 of file usSequenceWriter.h.
References us::RF_2D, usImageSettingsXmlParser::setImageFileName(), usImageSettingsXmlParser::setImageSettings(), usImageSettingsXmlParser::setSequenceFrameRate(), usImageSettingsXmlParser::setSequenceStartNumber(), and usImageSettingsXmlParser::setSequenceStopNumber().
|
inline |
Definition at line 247 of file usSequenceWriter.h.
References us::PRESCAN_2D, usImageSettingsXmlParser::setImageFileName(), usImageSettingsXmlParser::setImageSettings(), usImageSettingsXmlParser::setImageType(), usImageSettingsXmlParser::setSequenceFrameRate(), usImageSettingsXmlParser::setSequenceStartNumber(), and usImageSettingsXmlParser::setSequenceStopNumber().
|
inline |
Definition at line 266 of file usSequenceWriter.h.
References us::POSTSCAN_2D, usImageSettingsXmlParser::setImageFileName(), usImageSettingsXmlParser::setImageSettings(), usImageSettingsXmlParser::setImageType(), usImageSettingsXmlParser::setSequenceFrameRate(), usImageSettingsXmlParser::setSequenceStartNumber(), and usImageSettingsXmlParser::setSequenceStopNumber().
double usSequenceWriter< ImageType >::getFrameRate |
FrameRate getter.
Definition at line 133 of file usSequenceWriter.h.
void usSequenceWriter< ImageType >::saveImage | ( | const ImageType & | image, |
uint64_t | timestamp = 0 |
||
) |
Sequence last index setter.
image | Next image to write. |
timestamp | timestamp of the image (optionnal). |
Definition at line 291 of file usSequenceWriter.h.
void usSequenceWriter< ImageType >::setFirstFrameIndex | ( | long | firstIndex | ) |
Sequence first index setter.
firstIndex | Sequence first index. |
Definition at line 170 of file usSequenceWriter.h.
void usSequenceWriter< ImageType >::setFrameRate | ( | double | frameRate | ) |
FrameRate setter.
frameRate | Frame rate to set. |
Definition at line 127 of file usSequenceWriter.h.
void usSequenceWriter< ImageType >::setImageFileName | ( | const std::string & | imageFileName | ) |
Image generic file name setter. ex : "rf2d%04d.png". If you want to write the images in a subdirectory of where the header is, add the subdirs names in the file name (ex :"mySubDir/myserie%04d.png". Otherwise the images will be written in the same directory as the header.
imageFileName | Image file name, relatively to the header. |
Definition at line 152 of file usSequenceWriter.h.
void usSequenceWriter< ImageType >::setSequenceFileName | ( | const std::string & | sequenceFileName | ) |
File name setter, with parents direcotries (relative or absolute).
sequenceFileName | File name, ex : "../../myheader.xml", or : "/tmp/myheader.xml". |
Definition at line 139 of file usSequenceWriter.h.