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>
145 template <
class Type>
147 : vpImage<Type>(other),
usTransducerSettings(other), m_widthResolution(other.getWidthResolution()),
148 m_heightResolution(other.getHeightResolution())
159 template <
class Type>
161 double widthResolution,
double heightResolution)
162 : vpImage<Type>(image),
usTransducerSettings(transducerSettings), m_widthResolution(widthResolution),
163 m_heightResolution(heightResolution)
178 vpImage<Type>::operator=(other);
195 return (vpImage<Type>::operator==(other) && usTransducerSettings::operator==(other) &&
204 return out << static_cast<const usTransducerSettings &>(other) <<
"image width : " << other.getWidth() << std::endl
205 <<
"image height : " << other.getHeight() << std::endl
216 vpImage<Type>::operator=(image);
237 m_heightResolution = heightResolution;
246 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)