UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-11-21)
usMHDSequenceWriter Class Reference

#include <visp3/ustk_core/usMHDSequenceWriter.h>

Public Member Functions

 usMHDSequenceWriter ()
 
 ~usMHDSequenceWriter ()
 
void setSequenceDirectory (const std::string sequenceDirectory)
 
void write (const usImageRF2D< short int > &image, const uint64_t timestamp)
 
void write (const usImagePreScan2D< unsigned char > &image, const uint64_t timestamp)
 
void write (const usImagePostScan2D< unsigned char > &image, const uint64_t timestamp)
 
void write (const usImageRF3D< short int > &image, const std::vector< uint64_t > timestamp)
 
void write (const usImagePreScan3D< unsigned char > &image, const std::vector< uint64_t > timestamp)
 
void write (const usImagePostScan3D< unsigned char > &image, const uint64_t timestamp)
 

Detailed Description

Writer for a sequence of images stored as mhd/raw files in a directory Image filenames are set based on the following format: "image%05d.mhd" and "image%05d.raw". An internal counter is incremented every time write() is called, to update the filename of the new image in the sequence.

Examples
tutorial-MHD-sequence-reader.cpp, and tutorial-ustk-virtual-server-RF3D.cpp.

Definition at line 56 of file usMHDSequenceWriter.h.

Constructor & Destructor Documentation

◆ usMHDSequenceWriter()

usMHDSequenceWriter::usMHDSequenceWriter ( )

Constructor, initializes the member attribues.

Definition at line 6 of file usMHDSequenceWriter.cpp.

◆ ~usMHDSequenceWriter()

usMHDSequenceWriter::~usMHDSequenceWriter ( )

Destructor.

Definition at line 12 of file usMHDSequenceWriter.cpp.

Member Function Documentation

◆ setSequenceDirectory()

void usMHDSequenceWriter::setSequenceDirectory ( const std::string  sequenceDirectory)

Setter for the directory where to write the mhd sequence. To call before calling write !

Parameters
sequenceDirectoryThe directory path.
Examples
tutorial-MHD-sequence-reader.cpp, and tutorial-ustk-virtual-server-RF3D.cpp.

Definition at line 18 of file usMHDSequenceWriter.cpp.

References us::NOT_SET.

Referenced by usNetworkGrabberPostScan2D::activateRecording(), usNetworkGrabberPreScan2D::activateRecording(), usNetworkGrabberPreScan3D::activateRecording(), usNetworkGrabberRF2D::activateRecording(), and usNetworkGrabberRF3D::activateRecording().

◆ write() [1/6]

◆ write() [2/6]

◆ write() [3/6]

void usMHDSequenceWriter::write ( const usImagePreScan2D< unsigned char > &  image,
const uint64_t  timestamp 
)

◆ write() [4/6]

◆ write() [5/6]

◆ write() [6/6]