39 #ifndef __usImagePostScan2D_h_
40 #define __usImagePostScan2D_h_
42 #include <visp3/core/vpConfig.h>
43 #include <visp3/core/vpImage.h>
45 #include <visp3/ustk_core/usTransducerSettings.h>
113 double widthResolution = 0.0,
double heightResolution = 0.0);
128 double m_widthResolution;
129 double m_heightResolution;
135 template <
class Type>
144 template <
class Type>
146 : vpImage<Type>(other),
usTransducerSettings(other), m_widthResolution(other.getWidthResolution()),
147 m_heightResolution(other.getHeightResolution())
157 template <
class Type>
159 double widthResolution,
double heightResolution)
160 : vpImage<Type>(image),
usTransducerSettings(transducerSettings), m_widthResolution(widthResolution),
161 m_heightResolution(heightResolution)
175 vpImage<Type>::operator=(other);
192 return (vpImage<Type>::operator==(other) && usTransducerSettings::operator==(other) &&
201 return out << static_cast<const usTransducerSettings &>(other) <<
"image width : " << other.getWidth() << std::endl
202 <<
"image height : " << other.getHeight() << std::endl
213 vpImage<Type>::operator=(image);
234 m_heightResolution = heightResolution;
243 m_widthResolution = widthResolution;
2D post-scan ultrasound image.
void setHeightResolution(double heightResolution)
void setData(const vpImage< Type > &image)
double getHeightResolution() const
usImagePostScan2D< Type > & operator=(const usImagePostScan2D< Type > &other)
usImagePostScan2D(const vpImage< Type > &image, const usTransducerSettings &transducerSettings, double widthResolution=0.0, double heightResolution=0.0)
usImagePostScan2D(const usImagePostScan2D< Type > &other)
virtual ~usImagePostScan2D()
void setWidthResolution(double widthResolution)
double getWidthResolution() const
bool operator==(const usImagePostScan2D< Type > &other)
Generic class for 2D ultrasound data common settings associated to the type of probe transducer used ...
usTransducerSettings & operator=(const usTransducerSettings &other)