UsTK : Ultrasound ToolKit  version 2.0.1 under development (2023-12-07)
usLogCompressor Class Reference

#include <visp3/ustk_core/usLogCompressor.h>

Public Member Functions

 usLogCompressor ()
 
 ~usLogCompressor ()
 
void init (double alpha)
 
void run (unsigned char *dst, const double *src, unsigned int size)
 

Detailed Description

Log-compression filter.

Author
Pierre Chatelain

This class performs log-compression of an array of data. The filter should be initialized through init() and then applied through run().

Definition at line 55 of file usLogCompressor.h.

Constructor & Destructor Documentation

◆ usLogCompressor()

usLogCompressor::usLogCompressor ( )

Constructor.

Constructor.

Definition at line 42 of file usLogCompressor.cpp.

◆ ~usLogCompressor()

usLogCompressor::~usLogCompressor ( )

Destructor.

Destructor.

Definition at line 54 of file usLogCompressor.cpp.

Member Function Documentation

◆ init()

void usLogCompressor::init ( double  alpha)

Initialize the log-compression filter.

Parameters
alphaThe contrast parameter.

Definition at line 66 of file usLogCompressor.cpp.

◆ run()

void usLogCompressor::run ( unsigned char *  dst,
const double *  src,
unsigned int  size 
)

Run the log-compression filter.

Parameters
[out]dstPointer to the destination data array.
[in]srcPointer to the source data array.
[in]sizeThe size of the data array.

Both dst and src must point to an array of size size.

Definition at line 84 of file usLogCompressor.cpp.

Referenced by usRFToPreScan2DConverter::convert().