UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-11-21)
usSignalProcessing Class Reference

#include </home/soft/ustk/ustk-web-script/ustk-code/modules/ustk_elastography/include/visp3/ustk_elastography/usSignalProcessing.h>

Public Member Functions

 usSignalProcessing ()
 
virtual ~usSignalProcessing ()
 

Static Public Member Functions

static vpMatrix GaussianFilter (int height, int width, double sigma)
 
static vpMatrix getXGradient (const usImageRF2D< short > &image)
 
static vpMatrix getYGradient (const usImageRF2D< short int > &image)
 
static vpMatrix Difference (const usImageRF2D< short int > &A, const usImageRF2D< short int > &B)
 
static vpMatrix BilinearInterpolation (vpMatrix In, uint newW, uint newH)
 
static vpMatrix HadamardProd (vpMatrix matrix1, vpMatrix matrix2)
 

Detailed Description

Definition at line 69 of file usSignalProcessing.h.

Constructor & Destructor Documentation

◆ usSignalProcessing()

usSignalProcessing::usSignalProcessing ( )

Constructor.

usSignalProcessing::usSignalProcessing Constructor

Definition at line 40 of file usSignalProcessing.cpp.

◆ ~usSignalProcessing()

usSignalProcessing::~usSignalProcessing ( )
virtual

Virtual destructor.

usSignalProcessing::~usSignalProcessing Destructor - void

Definition at line 45 of file usSignalProcessing.cpp.

Member Function Documentation

◆ BilinearInterpolation()

vpMatrix usSignalProcessing::BilinearInterpolation ( vpMatrix  In,
uint  newW,
uint  newH 
)
static

Bilinear Interpolation.

Performs a bilinear interpolation on matrix In, to produce an output matrix of size (newH,newW)

Parameters
InInput matrix to interpolate.
newWOutput matrix width.
newHOutput matrix height.
Returns
The resulting matrix of the interpolation.

Definition at line 152 of file usSignalProcessing.cpp.

Referenced by usElastography::run().

◆ Difference()

vpMatrix usSignalProcessing::Difference ( const usImageRF2D< short int > &  A,
const usImageRF2D< short int > &  B 
)
static

Computes the difference between 2 matrix (value by value) The output matrix O is defined as O[i][j] = A[i][j] - B[i][j] for every component of the matrix. A and B must have the same size.

Parameters
AFirst input matrix.
BSecond input matrix.
Returns
The difference matrix.

Definition at line 130 of file usSignalProcessing.cpp.

References usImageRF2D< Type >::getHeight(), and usImageRF2D< Type >::getWidth().

Referenced by usElastography::run().

◆ GaussianFilter()

vpMatrix usSignalProcessing::GaussianFilter ( int  height,
int  width,
double  sigma 
)
static

Gaussian Kernel generator.

Gaussian filter kernel generator.

Parameters
heightGaussian kernel height.
widthGaussian kernel width.
sigmaStandard deviation of the gaussian function.
Returns
The gaussian filter kernel.

Definition at line 56 of file usSignalProcessing.cpp.

Referenced by usElastography::run().

◆ getXGradient()

vpMatrix usSignalProcessing::getXGradient ( const usImageRF2D< short > &  image)
static

Computation of gradients.

Computes a gradient filter on a RF image, along every row. The filter kernel is : [-0.5, 0, 0.5]

Parameters
imageRF image to apply the X gradient filter on.
Returns
The output of the X gradient filter.

Definition at line 80 of file usSignalProcessing.cpp.

References usImageRF2D< Type >::getHeight(), and usImageRF2D< Type >::getWidth().

Referenced by usElastography::run().

◆ getYGradient()

vpMatrix usSignalProcessing::getYGradient ( const usImageRF2D< short int > &  image)
static

Computes a gradient filter on a RF image, along every row. The filter kernel is the transpose of : [-0.5, 0, 0.5]

Parameters
imageRF image to apply the Y gradient filter on.
Returns
The output of the Y gradient filter.

Definition at line 104 of file usSignalProcessing.cpp.

References usImageRF2D< Type >::getHeight(), and usImageRF2D< Type >::getWidth().

Referenced by usElastography::run().

◆ HadamardProd()

vpMatrix usSignalProcessing::HadamardProd ( vpMatrix  matrix1,
vpMatrix  matrix2 
)
static

Element-wise product.

Performs the Hadamar product between 2 input matrices. matrix1 and matrix2 must have the same size.

Parameters
matrix1First input matrix to multiply.
matrix2Second input matrix to multiply.
Returns
The resulting matrix of the product.

Definition at line 188 of file usSignalProcessing.cpp.

Referenced by usElastography::run().