38 #ifndef __usImageSettingsXmlParser_h_
39 #define __usImageSettingsXmlParser_h_
41 #include <visp3/core/vpConfig.h>
47 #include <visp3/core/vpDebug.h>
48 #include <visp3/core/vpIoTools.h>
49 #include <visp3/core/vpXmlParser.h>
50 #include <visp3/io/vpParseArgv.h>
51 #include <visp3/ustk_core/us.h>
52 #include <visp3/ustk_core/usImagePostScan2D.h>
53 #include <visp3/ustk_core/usImagePreScan2D.h>
54 #include <visp3/ustk_core/usMotorSettings.h>
55 #include <visp3/ustk_core/usTransducerSettings.h>
98 typedef enum { SEQUENCE_OK, SEQUENCE_ERROR } vpXmlCodeSequenceType;
121 void setFrameNumber(
unsigned int frameNumber) { m_motorSettings.setFrameNumber(frameNumber); }
122 void setImageFileName(
const std::string &imageFileName);
123 void setImageSettings(
double transducerRadius,
double scanLinePitch,
bool isTransducerConvex,
double axialResolution,
124 us::ImageType image_type,
int samplingFrequency,
int transmitFrequency);
125 void setImageSettings(
double transducerRadius,
double scanLinePitch,
bool isTransducerConvex,
126 unsigned int scanLineNumber,
double widthResolution,
double heightResolution,
127 int samplingFrequency,
int transmitFrequency);
130 void setScanLineNumber(
unsigned int scanLineNumber) { m_transducerSettings.setScanLineNumber(scanLineNumber); }
133 m_sequence_frame_rate = sequenceFrameRate;
134 m_is_sequence =
true;
138 m_sequence_start = sequenceStartNumber;
139 m_is_sequence =
true;
143 m_sequence_stop = sequenceStopNumber;
144 m_is_sequence =
true;
147 void setSpacing(
double spacingX,
double spacingY,
double spacingZ)
149 m_spacingX = spacingX;
150 m_spacingY = spacingY;
151 m_spacingZ = spacingZ;
160 double m_widthResolution;
161 double m_heightResolution;
169 double m_axialResolution;
174 std::string m_imageFileName;
181 double m_sequence_frame_rate;
182 std::string m_sequence_name;
183 int m_sequence_start;
187 void readMainClass(xmlDocPtr doc, xmlNodePtr node);
188 void writeMainClass(xmlNodePtr node);
Input/output operations between ultrasound image settings and the assiciated xml files.
double getSpacingX() const
void setTransducerSettings(const usTransducerSettings transducerSettings)
void setSequenceType(bool isSequence)
int getSequenceStopNumber() const
void setSpacing(double spacingX, double spacingY, double spacingZ)
double getWidthResolution() const
unsigned int getScanLineNumber() const
usMotorSettings getMotorSettings() const
double getSpacingY() const
void setImageType(us::ImageType image_type)
us::ImageType getImageType() const
int getSequenceStartNumber() const
void setScanLineNumber(unsigned int scanLineNumber)
usTransducerSettings getTransducerSettings() const
double getFrameNumber() const
double getSequenceFrameRate() const
std::string getImageFileName() const
@ CODE_XML_HEIGHT_RESOLUTION
@ CODE_XML_SAMPLING_FREQUENCY
@ CODE_XML_SCANLINE_NUMBER
@ CODE_XML_SCANLINE_PITCH
@ CODE_XML_WIDTH_RESOLUTION
@ CODE_XML_TRANSDUCER_RADIUS
@ CODE_XML_SEQUENCE_FRAME_RATE
@ CODE_XML_AXIAL_RESOLUTION
@ CODE_XML_SEQUENCE_LAST_IMAGE_NUMBER
@ CODE_XML_IS_TRANSDUCER_CONVEX
@ CODE_XML_ASSOCIATED_IMAGE_FILE_NAME
@ CODE_XML_TRANSMIT_FREQUENCY
@ CODE_XML_SEQUENCE_FIRST_IMAGE_NUMBER
double getHeightResolution() const
void setSequenceStartNumber(int sequenceStartNumber)
double getAxialResolution() const
void setFrameNumber(unsigned int frameNumber)
double getSpacingZ() const
void setSequenceStopNumber(int sequenceStopNumber)
void setSequenceFrameRate(double sequenceFrameRate)
Generic class for 3D ultrasound motor settings associated to the 3D probe used during acquisition.
Generic class for 2D ultrasound data common settings associated to the type of probe transducer used ...