![]() |
VR-Vantage 2.7 API Documentation
|
class seElectronics More...
Public Types | |
| enum | ColorMapType { Undefined_ColorMap = -1, UserDefined_ColorMap = 0, LADAR_ColorMap = 1, NVG_ColorMap = 2, RG16_ColorMap = 3, LogScale_ColorMap = 4, UserDefinedRG_ColorMap = 5 } |
| ColorMapType. More... | |
Public Member Functions | |
| seElectronics () | |
| constructor | |
| ~seElectronics () | |
| destructor | |
| void | loadDefaults () |
| sets all the member data to default values. | |
| void | setFrameRate (const double rate) |
| sets the assumed frame rate of the sensor (Hz) used to determine the sampling rate of the noise. | |
| double | getFrameRate () |
| gets the assumed frame rate of the sensor (Hz) used to determine the sampling rate of the noise. | |
| void | setPostCutoffFreq (const double freq) |
| sets the post cutoff frequency of the sensor (Hz) specifies the time between noise samples and also is used to specify the number of noise samples to generate where number of samples = postCutoffFreq / preCutOnFreq | |
| double | getPostCutoffFreq () |
| gets the post cutoff frequency of the sensor specifies the time between noise samples and also is used to specify the number of noise samples to generate where number of samples = postCutoffFreq / preCutOnFreq | |
| void | setPreCutonFreq (const double freq) |
| sets the pre cuton frequency of the sensor specifies the total time of the noise samples and also is used to specify the number of noise samples to generate where number of samples = postCutoffFreq / preCutOnFreq | |
| double | getPreCutonFreq () |
| gets the post cutoff frequency of the sensor specifies the total time of the noise samples and also is used to specify the number of noise samples to generate where number of samples = postCutoffFreq / preCutOnFreq | |
| void | setManualGain (const double gain) |
| sets the manual gain of the sensor | |
| double | getManualGain () |
| gets the manual gain of the sensor | |
| void | setManualLevel (const double level) |
| sets the manual level of the sensor | |
| double | getManualLevel () |
| gets the manual level of the sensor | |
| void | setPreGain (const double gain) |
| sets the pre-gain of the sensor - this gain is always used whethere gain/level is enabled or not | |
| double | getPreGain () |
| gets the pre-gain of the sensor | |
| void | setPreLevel (const double level) |
| sets the pre-level of the sensor | |
| double | getPreLevel () |
| gets the pre-level of the sensor | |
| void | setAGCMaxGain (const double gain) |
| sets the max gain to be used by AGC | |
| double | getAGCMaxGain () |
| gets the max gain to be used by AGC | |
| void | setAGCMinGain (const double gain) |
| sets the min gain to be used by AGC | |
| double | getAGCMinGain () |
| gets the min gain to be used by AGC | |
| void | setMaxRadiance (const double maxRad) |
| sets the maximum radiance of the device which is the Radiance level that corresponds with 1.0 in input data set to 1.0 if 32bit radiance is input image. | |
| double | getMaxRadiance () |
| gets the maximum radiance of the device which is the Radiance level that corresponds with 1.0 in input data | |
| void | setMinRadiance (const double minRad) |
| sets the minimum radiance of the device which is the Radiance level that corresponds with 0.0 in input data set to 0.0 if 32bit radiance is input image. | |
| double | getMinRadiance () |
| sets the minimum radiance of the device which is the Radiance level that corresponds with 0.0 in input data | |
| void | setMaxLutRadiance (const double maxLutRad) |
| sets the maximum radiance of the device which is the Radiance level that corresponds with 1.0 in input data (LUT) set to 1.0 if 32bit radiance is input image. | |
| double | getMaxLutRadiance () |
| gets the maximum radiance of the device which is the Radiance level that corresponds with 1.0 in input data (LUT) | |
| void | setMinLutRadiance (const double minLutRad) |
| sets the minimum radiance of the device which is the Radiance level that corresponds with 0.0 in input data (LUT) set to 0.0 if 32bit radiance is input image. | |
| double | getMinLutRadiance () |
| sets the minimum radiance of the device which is the Radiance level that corresponds with 0.0 in input data (LUT) | |
| void | setLogScaleEnable (const bool flag) |
| sets the log scale enable flag for final log scale to the display. | |
| bool | isLogScaleEnable () |
| gets the log scale enable flag for final log scale to the display. | |
| void | setBlackHotEnable (const bool flag) |
| sets the Black Hot enable flag to show a black hot IR image. | |
| bool | isBlackHotEnable () |
| gets the Black Hot enable flag to show a black hot IR image. | |
| void | setGainEnable (const bool flag) |
| sets the gain enable flag - this overrides the AC coupling and AGC enable flags. | |
| bool | isGainEnable () |
| gets the gain enable flag. | |
| void | setInternalGainEnable (const bool flag) |
| sets the enable flag indicating whether the gain/level are applied internal to SenSimRt or is applied externally during the rendering. | |
| bool | isInternalGainEnable () |
| gets the enable flag indicating whether the gain/level are applied internal to SenSimRt or is applied externally during the rendering. | |
| void | setACcouplingEnable (const bool flag) |
| sets the AC coupling enable flag | |
| bool | isACcouplingEnable () |
| gets the AC coupling enable flag. | |
| void | setAGCEnable (const bool flag) |
| sets the automatic gain control (AGC) enable flag | |
| bool | isAGCEnable () |
| gets the automatic gain control (AGC) enable flag | |
| void | setGainAdjustment (double adjustment) |
| sets the adjustment that is multiplied by the manual gain setting. | |
| double | getGainAdjustment () |
| gets the adjustment that is multiplied by the manual gain setting. | |
| void | setLevelAdjustment (double adjustment) |
| sets the adjustment that is added to the manual level setting. | |
| double | getLevelAdjustment () |
| gets the adjustment that is added to the manual level setting. | |
| void | setNumDisplayPixels (const long width, const long height) |
| sets the number of pixels of the final display window | |
| void | getNumDisplayPixels (long &width, long &height) |
| gets the number of pixels of the final display window | |
| void | setDisplayOffset (const long offsetX, const long offsetY, bool clearBuffer=true) |
| sets the number of pixels to offset the image on the screen For instance to display a 512x512 image in the center of a 1kx1k window set the number of display pixels to 512x512 and set the offsets to 256x256 If set to -1,-1, then the image is upsampled to fill the display window. | |
| void | getDisplayOffset (long &offsetX, long &offsetY, bool &clearBuffer) |
| gets the number of pixels to offset the image on the screen The clearBuffer parameter will cause the framebuffer to be cleared first. | |
| void | getDisplayOffset (long &offsetX, long &offsetY) |
| gets the number of pixels to offset the image on the screen (this function maintains backswards compatibilty for when clearBuffer flag wasn't available). | |
| bool | isDirty () |
| Specifies whether the seElectronics has been changed. | |
| void | setDirty () |
| Specify whether the seElectronics has been changed. | |
| void | clrDirty () |
| Clear the flag that specifies whether the seElectronics has been changed. | |
| void | setColorMapType (ColorMapType newColorMapType) |
| sets the color map type. | |
| ColorMapType | getColorMapType () |
| gets the color map type. | |
| void | setColorMapEnable (const bool flag) |
| sets the color map enable flag. | |
| bool | isColorMapEnable () |
| gets the color map enable flag. | |
| void | setFullColorOutputEnable (const bool flag) |
| sets the full color output enable flag. | |
| bool | isFullColorOutputEnable () |
| gets the full color output enable flag. | |
| bool | loadUserDefinedRadianceLUT (char *filename) |
| Reads a 2-column radiance-to-pixelvalue LUT into memory. | |
| char * | getColorMapUserDefinedRadFile () |
| Get the data used for the user defined color map. | |
| void | setColorMapUserDefinedRadFile (const char *filepath) |
| set the file name for the file to be used for a user defined color map. | |
| void | loadColorMap (unsigned int *textureId) |
| Load the color map into the texture specified by the texture id. | |
| void | loadHistogramEqualizationMap (unsigned int *textureId, float *mapData, int size) |
| load color map data for histogram equalization AGC technique | |
Private Attributes | |
| double | m_frameRate |
| assumed frame rate of the sensor - used for noise sampling rate | |
| double | m_postCutoffFreq |
| highest frequency of the noise - specifies time between noise samples | |
| double | m_preCutonFreq |
| lowest frequency of the noise - specifies total time of the noise samples | |
| double | m_manualGain |
| gain setting from manually adjusted knob/slider | |
| double | m_manualLevel |
| level setting from manually adjusted knob/slider | |
| double | m_preGain |
| gain setting that is always applied | |
| double | m_preLevel |
| level setting that is always applied | |
| double | m_AGCMaxGain |
| maximum gain used by AGC | |
| double | m_AGCMinGain |
| minimum gain used by AGC | |
| double | m_maxRadiance |
| radiance value corresponding to 1.0 in the input data | |
| double | m_minRadiance |
| radiance value corresponding to 0.0 in the input data | |
| double | m_maxLutRadiance |
| radiance value corresponding to 1.0 in the input data | |
| double | m_minLutRadiance |
| radiance value corresponding to 0.0 in the input data | |
| bool | m_logScaleEnable |
| log scale enable flag | |
| bool | m_enableBlackHot |
| Black Hot enable flag. | |
| bool | m_gainEnable |
| gain functions enable flag | |
| bool | m_internalGainEnable |
| flag indicating to do gain/level internal to SenSim rather than in the rendering pass | |
| bool | m_ACcouplingEnable |
| AC coupling enable flag. | |
| bool | m_AGCEnable |
| Automatic Gain Control (AGC) enable flag. | |
| double | m_gainAdjustment |
| adjustment value multiplied by the gain | |
| double | m_levelAdjustment |
| adjustment value added to the level | |
| long | m_displayWidth |
| number pixels in the display's width | |
| long | m_displayHeight |
| number pixels in the display's height | |
| long | m_displayOffsetX |
| number pixels to offset the image from the lower left corner of the display in the X direction | |
| long | m_displayOffsetY |
| number pixels to offset the image from the lower left corner of the display in the Y direction | |
| bool | m_clearBufferFlag |
| flag to indicate whether to clear the back buffer before rendering the final image | |
| bool | m_dirty |
| indicates the electronics have been changed and initialization needs to occur | |
| bool | m_colorMapEnable |
| indicates that a color mapping will be used | |
| ColorMapType | m_currentColorMapType |
| indicates which type of color mapping will be used | |
| char | m_colorMapUserDefinedRadFile [512] |
| a 2-column radiance-to-pixelvalue LUT. | |
| unsigned int | m_ColorMapSize |
| size of color map | |
| float * | m_ColorMapData |
| array with color map data | |
| bool | m_fullColorOutputEnable |
| flag indicating full color output vs. monochrome remapping. | |
| float * | m_userdefLUTScaledRad |
| — User-defined radiance to pixelvalue LUT | |
class seElectronics
Sensor Effects electronics class. Holds the data related to the electronics portion of a device.
| seElectronics::seElectronics | ( | ) |
constructor
| seElectronics::~seElectronics | ( | ) |
destructor
| void seElectronics::loadDefaults | ( | ) |
sets all the member data to default values.
|
inline |
sets the assumed frame rate of the sensor (Hz) used to determine the sampling rate of the noise.
| rate |
|
inline |
gets the assumed frame rate of the sensor (Hz) used to determine the sampling rate of the noise.
|
inline |
sets the post cutoff frequency of the sensor (Hz) specifies the time between noise samples and also is used to specify the number of noise samples to generate where number of samples = postCutoffFreq / preCutOnFreq
| freq |
|
inline |
gets the post cutoff frequency of the sensor specifies the time between noise samples and also is used to specify the number of noise samples to generate where number of samples = postCutoffFreq / preCutOnFreq
|
inline |
sets the pre cuton frequency of the sensor specifies the total time of the noise samples and also is used to specify the number of noise samples to generate where number of samples = postCutoffFreq / preCutOnFreq
| freq |
|
inline |
gets the post cutoff frequency of the sensor specifies the total time of the noise samples and also is used to specify the number of noise samples to generate where number of samples = postCutoffFreq / preCutOnFreq
|
inline |
sets the manual gain of the sensor
| gain |
|
inline |
gets the manual gain of the sensor
|
inline |
sets the manual level of the sensor
| level |
|
inline |
gets the manual level of the sensor
|
inline |
sets the pre-gain of the sensor - this gain is always used whethere gain/level is enabled or not
| gain |
|
inline |
gets the pre-gain of the sensor
|
inline |
sets the pre-level of the sensor
| level |
|
inline |
gets the pre-level of the sensor
|
inline |
sets the max gain to be used by AGC
| gain |
|
inline |
gets the max gain to be used by AGC
|
inline |
sets the min gain to be used by AGC
| gain |
|
inline |
gets the min gain to be used by AGC
|
inline |
sets the maximum radiance of the device which is the Radiance level that corresponds with 1.0 in input data set to 1.0 if 32bit radiance is input image.
| maxRad |
|
inline |
gets the maximum radiance of the device which is the Radiance level that corresponds with 1.0 in input data
|
inline |
sets the minimum radiance of the device which is the Radiance level that corresponds with 0.0 in input data set to 0.0 if 32bit radiance is input image.
| minRad |
|
inline |
sets the minimum radiance of the device which is the Radiance level that corresponds with 0.0 in input data
|
inline |
sets the maximum radiance of the device which is the Radiance level that corresponds with 1.0 in input data (LUT) set to 1.0 if 32bit radiance is input image.
| maxLutRad |
|
inline |
gets the maximum radiance of the device which is the Radiance level that corresponds with 1.0 in input data (LUT)
|
inline |
sets the minimum radiance of the device which is the Radiance level that corresponds with 0.0 in input data (LUT) set to 0.0 if 32bit radiance is input image.
| minLutRad |
|
inline |
sets the minimum radiance of the device which is the Radiance level that corresponds with 0.0 in input data (LUT)
sets the log scale enable flag for final log scale to the display.
| flag |
|
inline |
gets the log scale enable flag for final log scale to the display.
sets the Black Hot enable flag to show a black hot IR image.
| flag |
|
inline |
gets the Black Hot enable flag to show a black hot IR image.
sets the gain enable flag - this overrides the AC coupling and AGC enable flags.
| flag |
|
inline |
gets the gain enable flag.
sets the enable flag indicating whether the gain/level are applied internal to SenSimRt or is applied externally during the rendering.
| flag |
|
inline |
gets the enable flag indicating whether the gain/level are applied internal to SenSimRt or is applied externally during the rendering.
sets the AC coupling enable flag
| flag |
|
inline |
gets the AC coupling enable flag.
sets the automatic gain control (AGC) enable flag
| flag |
|
inline |
gets the automatic gain control (AGC) enable flag
|
inline |
sets the adjustment that is multiplied by the manual gain setting.
This can be used as an adjustment knob/slider.
| adjustment | - 0 to 1.0 |
|
inline |
gets the adjustment that is multiplied by the manual gain setting.
This can be used as an adjustment knob/slider.
|
inline |
sets the adjustment that is added to the manual level setting.
This can be used as an adjustment knob/slider.
| adjustment |
|
inline |
gets the adjustment that is added to the manual level setting.
This can be used as an adjustment knob/slider.
|
inline |
sets the number of pixels of the final display window
| width | |
| height |
|
inline |
gets the number of pixels of the final display window
| width | |
| height |
|
inline |
sets the number of pixels to offset the image on the screen For instance to display a 512x512 image in the center of a 1kx1k window set the number of display pixels to 512x512 and set the offsets to 256x256 If set to -1,-1, then the image is upsampled to fill the display window.
| offsetX | - offset image in X direction from the lower left corner |
| offsetY | - offset image in Y direction from the lower left corner |
| clearBuffer | - when offsets are not -1,-1 this flag determines whether the back buffer should be cleared. |
gets the number of pixels to offset the image on the screen The clearBuffer parameter will cause the framebuffer to be cleared first.
| offsetX | |
| offsetY | |
| clearBuffer |
|
inline |
gets the number of pixels to offset the image on the screen (this function maintains backswards compatibilty for when clearBuffer flag wasn't available).
| offsetX | |
| offsetY |
|
inline |
Specifies whether the seElectronics has been changed.
|
inline |
Specify whether the seElectronics has been changed.
|
inline |
Clear the flag that specifies whether the seElectronics has been changed.
|
inline |
sets the color map type.
| newColorMapType |
|
inline |
gets the color map type.
sets the color map enable flag.
| flag |
|
inline |
gets the color map enable flag.
sets the full color output enable flag.
| flag |
|
inline |
gets the full color output enable flag.
| bool seElectronics::loadUserDefinedRadianceLUT | ( | char * | filename | ) |
Reads a 2-column radiance-to-pixelvalue LUT into memory.
| char* seElectronics::getColorMapUserDefinedRadFile | ( | ) |
Get the data used for the user defined color map.
| void seElectronics::setColorMapUserDefinedRadFile | ( | const char * | filepath | ) |
set the file name for the file to be used for a user defined color map.
Load the color map into the texture specified by the texture id.
| void seElectronics::loadHistogramEqualizationMap | ( | unsigned int * | textureId, |
| float * | mapData, | ||
| int | size | ||
| ) |
load color map data for histogram equalization AGC technique
|
private |
assumed frame rate of the sensor - used for noise sampling rate
|
private |
highest frequency of the noise - specifies time between noise samples
|
private |
lowest frequency of the noise - specifies total time of the noise samples
|
private |
gain setting from manually adjusted knob/slider
|
private |
level setting from manually adjusted knob/slider
|
private |
gain setting that is always applied
|
private |
level setting that is always applied
|
private |
maximum gain used by AGC
|
private |
minimum gain used by AGC
|
private |
radiance value corresponding to 1.0 in the input data
|
private |
radiance value corresponding to 0.0 in the input data
|
private |
radiance value corresponding to 1.0 in the input data
|
private |
radiance value corresponding to 0.0 in the input data
|
private |
log scale enable flag
|
private |
Black Hot enable flag.
|
private |
gain functions enable flag
|
private |
flag indicating to do gain/level internal to SenSim rather than in the rendering pass
|
private |
AC coupling enable flag.
|
private |
Automatic Gain Control (AGC) enable flag.
|
private |
adjustment value multiplied by the gain
|
private |
adjustment value added to the level
|
private |
number pixels in the display's width
|
private |
number pixels in the display's height
|
private |
number pixels to offset the image from the lower left corner of the display in the X direction
|
private |
number pixels to offset the image from the lower left corner of the display in the Y direction
|
private |
flag to indicate whether to clear the back buffer before rendering the final image
|
private |
indicates the electronics have been changed and initialization needs to occur
|
private |
indicates that a color mapping will be used
|
private |
indicates which type of color mapping will be used
|
private |
a 2-column radiance-to-pixelvalue LUT.
|
private |
size of color map
|
private |
array with color map data
|
private |
flag indicating full color output vs. monochrome remapping.
|
private |
— User-defined radiance to pixelvalue LUT