38 #ifndef __usImagePreScan2D_h_
39 #define __usImagePreScan2D_h_
41 #include <visp3/core/vpImage.h>
43 #include <visp3/ustk_core/usImagePreScanSettings.h>
134 void resize(
const unsigned int h,
const unsigned int w);
135 void resize(
const unsigned int h,
const unsigned int w,
const Type val);
147 template <
class Type>
158 template <
class Type>
170 template <
class Type>
175 throw(vpException(vpException::badValue,
"Pre-scan image width differ from transducer scanline number"));
189 vpImage<Type>::operator=(other);
202 return (vpImage<Type>::operator==(other) && usImagePreScanSettings::operator==(other));
210 return (!
operator==(other));
218 return out << static_cast<const usImagePreScanSettings &>(other)
229 return vpImage<Type>::getHeight();
238 vpImage<Type>::operator=(image);
239 setScanLineNumber(image.getWidth());
250 vpImage<Type>::resize(vpImage<Type>::getHeight(), scanLineNumber);
264 vpImage<Type>::resize(
h, w);
278 vpImage<Type>::resize(
h, w, val);
2D pre-scan ultrasound image.
void resize(const unsigned int h, const unsigned int w)
bool operator!=(const usImagePreScan2D< Type > &other)
usImagePreScan2D(const vpImage< Type > &image, const usImagePreScanSettings &preScanSettings)
virtual ~usImagePreScan2D()
bool operator==(const usImagePreScan2D< Type > &other)
void resize(const unsigned int h, const unsigned int w, const Type val)
void setData(const vpImage< Type > image)
unsigned int getBModeSampleNumber() const
usImagePreScan2D(const usImagePreScan2D &other)
usImagePreScan2D< Type > & operator=(const usImagePreScan2D< Type > &other)
usImagePreScan2D(unsigned int height, unsigned int width)
void setScanLineNumber(unsigned int scanLineNumber)
Settings associated to ultrasound pre-scan images implemented in usImageRF2D, usImageRF3D,...
usImagePreScanSettings & operator=(const usImagePreScanSettings &other)
Class containing a set of static methods to compute various processes on RF images (gradients,...
unsigned int getScanLineNumber() const
void setScanLineNumber(unsigned int scanLineNumber)