43 #include <visp3/ustk_core/usTransducerSettings.h>
51 : m_transducerRadius(0.0f), m_scanLinePitch(0.0f), m_scanLineNumber(0), m_isTransducerConvex(true),
52 m_scanLineNumberIsSet(false), m_transmitFrequency(0), m_samplingFrequency(0)
70 bool transducerConvex,
double depth,
int transmitFrequency,
71 int samplingFrequency)
72 : m_transducerRadius(transducerRadius), m_scanLinePitch(scanLinePitch), m_scanLineNumber(scanLineNumber),
73 m_isTransducerConvex(transducerConvex), m_depth(depth), m_scanLineNumberIsSet(true),
74 m_transmitFrequency(transmitFrequency), m_samplingFrequency(samplingFrequency)
141 out <<
"scan line pitch distance: " << other.
getScanLinePitch() << std::endl;
144 <<
"depth : " << other.
getDepth() << std::endl
193 m_transducerRadius = 0.0;
224 m_scanLineNumberIsSet =
true;
225 m_scanLineNumber = scanLineNumber;
246 if (!m_scanLineNumberIsSet)
247 throw vpException(vpException::notInitialized,
248 "The scan line number is not set, cannot determine the field of view");
249 return m_scanLinePitch * (double)(m_scanLineNumber - 1);
267 if (!m_scanLineNumberIsSet)
268 throw vpException(vpException::notInitialized,
269 "The scan line number is not set, cannot determine the pitch from the field of view");
270 m_scanLinePitch = fieldOfView / (double)(m_scanLineNumber - 1);
319 m_samplingFrequency = samplingFrequency;
328 m_transmitFrequency = transmitFrequency;
Generic class for 2D ultrasound data common settings associated to the type of probe transducer used ...
usTransducerSettings getTransducerSettings() const
usTransducerSettings & operator=(const usTransducerSettings &other)
void setFieldOfView(double fieldOfView)
void setTransducerConvexity(const bool isTransducerConvex)
double getFieldOfView() const
virtual ~usTransducerSettings()
int getTransmitFrequency() const
bool operator!=(usTransducerSettings const &other)
void setDepth(double depth)
void setScanLinePitch(const double scanLinePitch)
std::string getProbeName() const
void setTransmitFrequency(const int transmitFrequency)
double getScanLinePitch() const
void setProbeName(std::string probeName)
void setSamplingFrequency(const int samplingFrequency)
bool operator==(usTransducerSettings const &other)
void setTransducerRadius(const double transducerRadius)
bool isTransducerConvex() const
bool scanLineNumberIsSet() const
double getTransducerRadius() const
int getSamplingFrequency() const
void setTransducerSettings(const usTransducerSettings &other)
unsigned int getScanLineNumber() const
void setScanLineNumber(unsigned int scanLineNumber)