fast::ScanConverter class

Scan convert beamspace image.

Inputs:

Outputs:

  • 0: Scan converted grayscale image (uint8)

Base classes

class ProcessObject
Abstract base class for all process objects.

Public functions

auto create(int width, int height, float gain, float dynamicRange, float startDepth, float endDepth, float startAngle, float endAngle, float left, float right) -> std::shared_ptr<ScanConverter>
Create instance.
void setWidth(int width)
auto getWidth() const -> int
void setHeight(int height)
auto getHeight() const -> int
void setGain(float gain)
void setDynamicRange(float dynamicRange)

Private functions

void execute() override

Function documentation

std::shared_ptr<ScanConverter> fast::ScanConverter::create(int width, int height, float gain, float dynamicRange, float startDepth, float endDepth, float startAngle, float endAngle, float left, float right)

Create instance.

Parameters
width Width of output image
height Height of output image
gain Set gain to be used if input is in dB
dynamicRange Set dynamic range to be used if input is in dB
startDepth Start depth scan in millimeters. This is only needed to be set manually if the input frame lacks this information in its frame data.
endDepth End depth of scan in millimeters. This is only needed to be set manually if the input frame lacks this information in its frame data.
startAngle Start angle of sector scan in radians. Not needed if linear array image. This is only needed to be set manually if the input frame lacks this information in its frame data.
endAngle End angle of sector scan in radians. Not needed if linear array image. This is only needed to be set manually if the input frame lacks this information in its frame data.
left Lateral start position of linear scan in millimeters. Not needed if sector scan. This is only needed to be set manually if the input frame lacks this information in its frame data.
right Lateral end position of linear scan in millimeters. Not needed if sector scan. This is only needed to be set manually if the input frame lacks this information in its frame data.
Returns instance

The scan converter parameters (start/end depth, start/end angle etc.) can be set manually here. But this is only needed if the input image frame lacks this information in its frame data. The UFFStreamer should provide this information.