PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
|
This class is used to store a configuration of the imaging parameters of an ultrasound video device. Ultrasound video devices should contain a member variable of this class that is used to set/query the depth, gain, etc. This class exists mainly for two reasons: Provide a standard interface for accessing ultrasound parameters Enable standardized API for operating on ultrasound parametersCurrently contains the following items FrequencyMhz DepthMm FocusDepthPercent (normalized [0,100]) SectorPercent GainPercent TGC [initialgain, midgain, fargain] Intensity (brightness) Contrast PowerDb DynRangeDb ZoomFactor Voltage ImageSize [x, y, z] SoundVelocity. More...
#include <src/PlusDataCollection/vtkPlusUsImagingParameters.h>
Classes | |
class | ParameterInfo |
Public Member Functions | |
virtual PlusStatus | DeepCopy (const vtkPlusUsImagingParameters &otherParameters) |
virtual const char * | GetClassName () |
PlusStatus | GetContrast (double &aContrast) const |
double | GetContrast () const |
PlusStatus | GetDepthMm (double &aDepthMm) const |
double | GetDepthMm () const |
PlusStatus | GetDynRangeDb (double &aDynRangeDb) const |
double | GetDynRangeDb () const |
PlusStatus | GetFocusDepthPercent (double &aFocusDepthPercent) const |
double | GetFocusDepthPercent () const |
PlusStatus | GetFrequencyMhz (double &aFrequencyMhz) const |
double | GetFrequencyMhz () const |
PlusStatus | GetGainPercent (double aGainPercent) const |
double | GetGainPercent () const |
PlusStatus | GetImageSize (FrameSizeType &imageSize) const |
FrameSizeType | GetImageSize () const |
PlusStatus | GetIntensity (double &aIntensity) const |
double | GetIntensity () const |
PlusStatus | GetPowerDb (double &aPower) const |
double | GetPowerDb () const |
PlusStatus | GetProbeVoltage (float &aVoltage) const |
float | GetProbeVoltage () const |
PlusStatus | GetSectorPercent (double &aSectorPercent) const |
double | GetSectorPercent () const |
PlusStatus | GetSoundVelocity (float &aSoundVelocity) const |
float | GetSoundVelocity () const |
PlusStatus | GetTimeGainCompensation (std::vector< double > &tgc) const |
std::vector< double > | GetTimeGainCompensation () const |
template<typename T > | |
PlusStatus | GetValue (const std::string ¶mName, T &outputValue) const |
PlusStatus | GetZoomFactor (double &aZoomFactor) const |
double | GetZoomFactor () const |
virtual int | IsA (const char *type) |
bool | IsPending (const std::string ¶mName) const |
bool | IsSet (const std::string ¶mName) const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
virtual PlusStatus | ReadConfiguration (vtkXMLDataElement *deviceConfig) |
PlusStatus | SetContrast (double aContrast) |
PlusStatus | SetDepthMm (double aDepthMm) |
PlusStatus | SetDynRangeDb (double aDynRangeDb) |
PlusStatus | SetFocusDepthPercent (double aFocusDepthPercent) |
PlusStatus | SetFrequencyMhz (double aFrequencyMhz) |
PlusStatus | SetGainPercent (double aGainPercent) |
PlusStatus | SetImageSize (const FrameSizeType &imageSize) |
PlusStatus | SetImageSize (unsigned int x, unsigned int y, unsigned int z) |
PlusStatus | SetIntensity (double aIntensity) |
PlusStatus | SetPending (const std::string ¶mName, bool pending) |
PlusStatus | SetPowerDb (double aPower) |
PlusStatus | SetProbeVoltage (float aVoltage) |
PlusStatus | SetSectorPercent (double aSectorPercent) |
PlusStatus | SetSoundVelocity (float aSoundVelocity) |
PlusStatus | SetTimeGainCompensation (const std::vector< double > &tgc) |
PlusStatus | SetTimeGainCompensation (double *tgc, int length) |
template<typename T > | |
PlusStatus | SetValue (const std::string ¶mName, T aValue) |
PlusStatus | SetZoomFactor (double aZoomFactor) |
virtual PlusStatus | WriteConfiguration (vtkXMLDataElement *deviceConfig) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPlusUsImagingParameters * | New () |
static vtkPlusUsImagingParameters * | SafeDownCast (vtkObject *o) |
Static Public Attributes | |
static const char * | KEY_CONTRAST = "Contrast" |
static const char * | KEY_DEPTH = "DepthMm" |
static const char * | KEY_DYNRANGE = "DynRangeDb" |
static const char * | KEY_FOCUS_DEPTH = "FocusDepthPercent" |
static const char * | KEY_FREQUENCY = "FrequencyMhz" |
static const char * | KEY_GAIN = "GainPercent" |
static const char * | KEY_IMAGESIZE = "ImageSize" |
static const char * | KEY_INTENSITY = "Intensity" |
static const char * | KEY_POWER = "PowerDb" |
static const char * | KEY_SECTOR = "SectorPercent" |
static const char * | KEY_SOUNDVELOCITY = "SoundVelocity" |
static const char * | KEY_TGC = "TimeGainCompensation" |
static const char * | KEY_VOLTAGE = "Voltage" |
static const char * | KEY_ZOOM = "ZoomFactor" |
static const char * | NAME_TAG = "name" |
static const char * | US_PARAMETER_TAG = "UsParameter" |
static const char * | VALUE_TAG = "value" |
static const char * | XML_ELEMENT_TAG = "UsImagingParameters" |
Protected Types | |
typedef std::map< std::string, ParameterInfo > | ParameterMap |
typedef ParameterMap::const_iterator | ParameterMapConstIterator |
typedef ParameterMap::iterator | ParameterMapIterator |
Protected Member Functions | |
ParameterMapConstIterator | begin () const |
ParameterMapConstIterator | end () const |
vtkPlusUsImagingParameters () | |
virtual | ~vtkPlusUsImagingParameters () |
Protected Attributes | |
ParameterMap | Parameters |
This class is used to store a configuration of the imaging parameters of an ultrasound video device. Ultrasound video devices should contain a member variable of this class that is used to set/query the depth, gain, etc. This class exists mainly for two reasons: Provide a standard interface for accessing ultrasound parameters Enable standardized API for operating on ultrasound parameters
Currently contains the following items FrequencyMhz DepthMm FocusDepthPercent (normalized [0,100]) SectorPercent GainPercent TGC [initialgain, midgain, fargain] Intensity (brightness) Contrast PowerDb DynRangeDb ZoomFactor Voltage ImageSize [x, y, z] SoundVelocity.
Definition at line 41 of file vtkPlusUsImagingParameters.h.
|
protected |
Definition at line 58 of file vtkPlusUsImagingParameters.h.
|
protected |
Definition at line 60 of file vtkPlusUsImagingParameters.h.
|
protected |
Definition at line 59 of file vtkPlusUsImagingParameters.h.
typedef vtkObject vtkPlusUsImagingParameters::Superclass |
Definition at line 89 of file vtkPlusUsImagingParameters.h.
Definition at line 288 of file vtkPlusUsImagingParameters.h.
Definition at line 256 of file vtkPlusUsImagingParameters.h.
|
protected |
Definition at line 38 of file vtkPlusUsImagingParameters.cxx.
|
protectedvirtual |
Definition at line 58 of file vtkPlusUsImagingParameters.cxx.
|
protected |
Return an iterator to the beginning of the parameter space
Definition at line 337 of file vtkPlusUsImagingParameters.cxx.
|
virtual |
Copy the values from another imaging parameters
Definition at line 577 of file vtkPlusUsImagingParameters.cxx.
|
protected |
Return an iterator to the end of the parameter space
Definition at line 343 of file vtkPlusUsImagingParameters.cxx.
|
virtual |
PlusStatus vtkPlusUsImagingParameters::GetContrast | ( | double & | aContrast | ) | const |
Get the contrast of B-mode ultrasound
Definition at line 222 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetContrast | ( | ) | const |
Definition at line 228 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetDepthMm | ( | double & | aDepthMm | ) | const |
Get the depth (mm) of B-mode ultrasound
Definition at line 90 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetDepthMm | ( | ) | const |
Definition at line 96 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetDynRangeDb | ( | double & | aDynRangeDb | ) | const |
Get the DynRange (dB) of B-mode ultrasound
Definition at line 262 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetDynRangeDb | ( | ) | const |
Definition at line 268 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetFocusDepthPercent | ( | double & | aFocusDepthPercent | ) | const |
Get the focus depth (normalized [0,1]) of B-mode ultrasound
Definition at line 110 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetFocusDepthPercent | ( | ) | const |
Definition at line 116 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetFrequencyMhz | ( | double & | aFrequencyMhz | ) | const |
Get ultrasound transmitter frequency (MHz)
Definition at line 70 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetFrequencyMhz | ( | ) | const |
Definition at line 76 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetGainPercent | ( | double | aGainPercent | ) | const |
Get the Gain (%) of B-mode ultrasound; valid range: 0-100
Definition at line 130 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetGainPercent | ( | ) | const |
Definition at line 136 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetImageSize | ( | FrameSizeType & | imageSize | ) | const |
Get the image size of B-mode ultrasound
Definition at line 393 of file vtkPlusUsImagingParameters.cxx.
FrameSizeType vtkPlusUsImagingParameters::GetImageSize | ( | ) | const |
Definition at line 427 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetIntensity | ( | double & | aIntensity | ) | const |
Get the Intensity of B-mode ultrasound
Definition at line 202 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetIntensity | ( | ) | const |
Definition at line 208 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetPowerDb | ( | double & | aPower | ) | const |
Get the Power of B-mode ultrasound
Definition at line 242 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetPowerDb | ( | ) | const |
Definition at line 248 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetProbeVoltage | ( | float & | aVoltage | ) | const |
Get the voltage of ultrasound probe (depends on an ultrasound system)
Definition at line 355 of file vtkPlusUsImagingParameters.cxx.
float vtkPlusUsImagingParameters::GetProbeVoltage | ( | ) | const |
Definition at line 361 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetSectorPercent | ( | double & | aSectorPercent | ) | const |
Get the Sector (%) of B-mode ultrasound; valid range: 0-100
Definition at line 302 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetSectorPercent | ( | ) | const |
Definition at line 308 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetSoundVelocity | ( | float & | aSoundVelocity | ) | const |
Get the Sector (%) of B-mode ultrasound; valid range: 0-100
Definition at line 322 of file vtkPlusUsImagingParameters.cxx.
float vtkPlusUsImagingParameters::GetSoundVelocity | ( | ) | const |
Definition at line 328 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::GetTimeGainCompensation | ( | std::vector< double > & | tgc | ) | const |
Get the TGC [initialgain, midgain, fargain] of B-mode ultrasound; valid range: 0-100
Definition at line 167 of file vtkPlusUsImagingParameters.cxx.
std::vector< double > vtkPlusUsImagingParameters::GetTimeGainCompensation | ( | ) | const |
Definition at line 188 of file vtkPlusUsImagingParameters.cxx.
|
inline |
Request a stored value by key name
paramName | the key value to retrieve |
outputValue | the output variable to write to |
Definition at line 115 of file vtkPlusUsImagingParameters.h.
PlusStatus vtkPlusUsImagingParameters::GetZoomFactor | ( | double & | aZoomFactor | ) | const |
Get the Zoom (%) of B-mode ultrasound; valid range: 0-100
Definition at line 282 of file vtkPlusUsImagingParameters.cxx.
double vtkPlusUsImagingParameters::GetZoomFactor | ( | ) | const |
Definition at line 288 of file vtkPlusUsImagingParameters.cxx.
|
virtual |
bool vtkPlusUsImagingParameters::IsPending | ( | const std::string & | paramName | ) | const |
Request the pending status of a parameter
paramName | the key value to retrieve |
Definition at line 542 of file vtkPlusUsImagingParameters.cxx.
bool vtkPlusUsImagingParameters::IsSet | ( | const std::string & | paramName | ) | const |
Request the set status of a parameter (whether it is not the default value)
paramName | the key value to retrieve |
Definition at line 529 of file vtkPlusUsImagingParameters.cxx.
|
static |
|
static |
|
virtual |
Print the list of supported parameters. For diagnostic purposes only.
Definition at line 435 of file vtkPlusUsImagingParameters.cxx.
|
virtual |
Read main configuration from/to XML data Assumes that the data element passed is the device element, not the root!
deviceConfig | the XML element of the device |
Definition at line 450 of file vtkPlusUsImagingParameters.cxx.
|
static |
PlusStatus vtkPlusUsImagingParameters::SetContrast | ( | double | aContrast | ) |
Set the contrast of B-mode ultrasound
Definition at line 216 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetDepthMm | ( | double | aDepthMm | ) |
Set the depth (mm) of B-mode ultrasound
Definition at line 84 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetDynRangeDb | ( | double | aDynRangeDb | ) |
Set the DynRange (dB) of B-mode ultrasound
Definition at line 256 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetFocusDepthPercent | ( | double | aFocusDepthPercent | ) |
Set the focus depth (normalized [0,1]) of B-mode ultrasound
Definition at line 104 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetFrequencyMhz | ( | double | aFrequencyMhz | ) |
Set ultrasound transmitter frequency (MHz)
Definition at line 64 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetGainPercent | ( | double | aGainPercent | ) |
Set the Gain (%) of B-mode ultrasound; valid range: 0-100
Definition at line 124 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetImageSize | ( | const FrameSizeType & | imageSize | ) |
Set the image size [width, height, depth(elevational dimension)] of the B-mode ultrasound
Definition at line 369 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetImageSize | ( | unsigned int | x, |
unsigned int | y, | ||
unsigned int | z | ||
) |
Definition at line 386 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetIntensity | ( | double | aIntensity | ) |
Set the intensity of B-mode ultrasound
Definition at line 196 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetPending | ( | const std::string & | paramName, |
bool | pending | ||
) |
Set the pending status of a parameter
Definition at line 555 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetPowerDb | ( | double | aPower | ) |
Set the power of B-mode ultrasound
Definition at line 236 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetProbeVoltage | ( | float | aVoltage | ) |
Set the voltage of ultrasound probe (depends on an ultrasound system)
Definition at line 349 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetSectorPercent | ( | double | aSectorPercent | ) |
Set the Sector (%) of B-mode ultrasound; valid range: 0-100
Definition at line 296 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetSoundVelocity | ( | float | aSoundVelocity | ) |
Set the Sector (%) of B-mode ultrasound; valid range: 0-100
Definition at line 316 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetTimeGainCompensation | ( | const std::vector< double > & | tgc | ) |
Set the TGC [initialgain, midgain, fargain] of B-mode ultrasound; valid range: 0-100
Definition at line 144 of file vtkPlusUsImagingParameters.cxx.
PlusStatus vtkPlusUsImagingParameters::SetTimeGainCompensation | ( | double * | tgc, |
int | length | ||
) |
Definition at line 160 of file vtkPlusUsImagingParameters.cxx.
|
inline |
Set a stored value by key name Defined in the header to make it available externally
paramName | the key value to retrieve |
aValue | the value to write |
Definition at line 140 of file vtkPlusUsImagingParameters.h.
PlusStatus vtkPlusUsImagingParameters::SetZoomFactor | ( | double | aZoomFactor | ) |
Set the Zoom (%) of B-mode ultrasound; valid range: 0-100
Definition at line 276 of file vtkPlusUsImagingParameters.cxx.
|
virtual |
Write main configuration from/to XML data Assumes that the data element passed is the device element, not the root!
deviceConfig | the XML element of the device |
Definition at line 492 of file vtkPlusUsImagingParameters.cxx.
|
static |
Definition at line 79 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 73 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 75 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 74 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 72 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 76 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 85 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 78 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 80 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 81 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 83 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 77 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 84 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 82 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 70 of file vtkPlusUsImagingParameters.h.
|
protected |
Definition at line 322 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 69 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 71 of file vtkPlusUsImagingParameters.h.
|
static |
Definition at line 68 of file vtkPlusUsImagingParameters.h.