![]() |
VR-Vantage 3.1 API Documentation
|
Public Types | |
| enum | OutputImageArrayType { OUTPUT_TYPE_RADIANCE, OUTPUT_TYPE_PHOTONS, OUTPUT_TYPE_COUNTS, OUTPUT_TYPE_NUM } |
Public Member Functions | |
| seSenSim () | |
| constructor | |
| ~seSenSim () | |
| destructor | |
| bool | initialize () |
| initialize sensor effects | |
| void | outputImage (char *filename, float *inputImage, long numCols, long numRows) |
| output an floating point image to a file. | |
| void | applyCpuSensorEffects (float *inputImage, long numCols, long numRows) |
| apply slow-time cpu based sensor effects | |
| double | getFocalLength () const |
| gets the aperture's focal length (cm) | |
| double | getFNumber () const |
| gets the aperture's f number (unitless) | |
| seDetector * | getDetector () const |
| gets Detector object pointer | |
| seOptics * | getOptics () const |
| gets Optics object pointer | |
| seFilter * | getFilter () |
| gets Filter object pointer | |
| seNoise * | getNoise () |
| gets Noise object pointer | |
| seElectronics * | getElectronics () const |
| gets Electronics object pointer | |
| seGainLevel * | getGainLevel () const |
| gets gain/level object pointer | |
| void | setSensorEffectsFlags (bool enable, bool gpuEnable, bool filterEnable, bool noiseEnable, bool gainEnable, bool AGCenable, bool haloEnable, bool motionBlurEnable=false) |
| Sets the sensor effects enable flags in the interface. | |
| bool | isSensorEffectsOn () const |
| Gets the sensor effects enable flags in the interface. | |
| void | setInputSize (int w, int h, bool use888Encoding=false) |
| set input size in width and height When the input size changes everything is initialized to work with the new resolution. | |
| void | setInputOffset (int x, int y) |
| set input offset | |
| void | setDisplaySize (int w, int h) |
| set size of the display in width and height When the input size changes everything is initialized to work with the new resolution. | |
| void | setDisplayOffset (int x, int y, bool clearBuffer) |
| set display offset | |
| void | applyGpuSensorEffects (int inputTextureId, bool usePreviousFBO=false, float *inputImage=NULL, bool swapBuffer=false, bool useTextureRect=false, int outputTextureId=0) |
| description: applies all of the enabled sensor effects using the Gpu. | |
| void | getMTFSamples (int numSamples, double &xCutoffFreq, double &yCutoffFreq, double *xMTF, double *yMTF) const |
| Get both the horizontal and vertical mtf for a given number of samples, compute the cutoff frequencies and return the data in the provided arrays. | |
| bool | isFilterOn () const |
| indicates that filtering is on. | |
| bool | isNoiseOn () const |
| indicates that noise processing is on. | |
| bool | isHaloOn () const |
| bool | isMotionBlurOn () const |
| bool | isGainOn () const |
| indicates that gain and level processing is on. | |
| bool | isGpuSensorEffectsOn () const |
| indicates that GPU real-time sensor effects processing is on. | |
| void | setFilterAdjustment (double adjustment) |
| Adjust the filter. | |
| void | setNoiseAdjustment (double adjustment) |
| Adjust the noise. | |
| void | setGainAdjustment (double adjustment) |
| Adjust the gain. | |
| void | setLevelAdjustment (double adjustment) |
| Adjust the level. | |
| double | getFilterAdjustment () const |
| Get the filter adjustment. | |
| double | getNoiseAdjustment () const |
| Get the noise adjustment. | |
| double | getGainAdjustment () const |
| Get the gain adjustment. | |
| double | getLevelAdjustment () const |
| Get the level adjustment. | |
| bool | isBlackHotEnable () const |
| Return true if blackhot is enabled. | |
| void | setBlackHotEnable (bool flag) |
| Set the blackhot enable on or off. | |
| bool | isAeroDynamicHeatingEnable () const |
| Return true if aerodynamic heating is enabled. | |
| void | setAeroDynamicHeatingEnable (bool flag) |
| Set the aerodynamic heatin enable on or off. | |
| int | getAeroDynamicHeatingGimbalMode () const |
| Return the Gimbal mode for aerodynamic heating. | |
| void | setAeroDynamicHeatingGimbalMode (int flag) |
| Set the Gimbal mode for aerodynamic heating. | |
| void | setBandpass (const double ax, const double bx) |
| set the bandpass. | |
| void | setColorMapType (seElectronics::ColorMapType newColorMapType) |
| sets the color map type. | |
| seElectronics::ColorMapType | getColorMapType () const |
| gets the color map type. | |
| void | setColorMapEnable (int flag) |
| sets the color map enable flag. | |
| int | getColorMapEnable () const |
| gets the color map enable flag. | |
| bool | isFullColorEnable () const |
| Return true if full color is enabled. Higher level function for non license version. | |
| void | setFullColorEnable (bool flag) |
| Set the full color enable on or off. Higher level function for non license version. | |
| void | setSaveImage (char *saveFileName, bool preAperture=false, bool continuous=false, bool flip=true, bool detectorResolution=false) |
| setup saving the radiance image output of sensim into a raw floating point format. | |
| void | setStopContinuous () |
| Tell seGpuProcessor to stop recording radiance images continuously. | |
| void | setSaveImageFileName (char *saveFileName) |
| setup file name for saving the radiance image output of sensim into a raw floating point format. | |
| void | setSavePreApertureImage (bool preAperture) |
| setup saving the radiance image output of sensim before the sensor effects are added (pre-aperture). | |
| void | setSaveContinuousImages (bool continuous) |
| setup saving the radiance image output into a continuous image stream. | |
| void | setFlipSaveImages (bool flip) |
| setup to flip the image that is saved to match ImageJ. | |
| void | setSaveImagesAtDetectorResolution (bool flag) |
| set the saved image to occur at the detector resolution rather than at display resolution | |
| void | setSaveRadianceImageEnable () |
| Cause the saving the radiance image(s) output of sensim to begin. | |
| void | setSaveRadianceImageArrayEnable (bool enable) |
| Cause the saving the radiance image(s) output of sensim to begin without saving files to disk. | |
| void | applyAeroDynamicHeating (float azimuthOffset, float elevationOffset, float speed, float aeroDynamicHeating) |
| set the azimuth and elevation offset, speed, scaled radiance, and gimbal mode for aerodynamic heating | |
| float * | getRadianceImageArray () const |
| get image array containing radiance image. | |
| float * | getObjectIDImageArray () const |
| get image array containing object ID image. | |
| float * | getDownSampledRadianceImageArray () const |
| get the down sampled image array containing radiance image. | |
| float * | getDownSampledObjectIDImageArray () const |
| get the down sampled image array containing object ID image. | |
| void | getDownSampledImageSize (int &width, int &height) const |
| get the size of the down sampled image | |
| void | setDownSampledImagesEnable (bool bEnable) |
| get the flag for enabling down sampled image captures | |
| bool | getDownSampledImagesEnable () const |
| get the flag determining the state of down sampled image captures | |
| void | setObjectIDRenderingEnable (bool bEnable) |
| set the state for object ID rendering for object ID buffer captures | |
| bool | getObjectIDRenderingEnable () const |
| get the state for object ID rendering and buffer captures | |
| void | setNumberSubloadRows (int numberOfRows) |
| control factor that defines the number of rows (or scan lines) to subload in a frame for performance | |
| void | setOutputImageArrayType (OutputImageArrayType type) |
| sets the desired output type for image saves. | |
| OutputImageArrayType | getOutputImageArrayType () const |
| gets the desired output type for image saves. | |
| bool | initializeLicense () |
| check the license and display the SenSimRT version This should be called before any other methods to verify that a SenSim license is available. | |
| bool | licenseCheck () const |
| Checks for SenSimRT license registration - the initializeLicense method must first be called. | |
| bool | openGLCheck () const |
| Check if there is a rendering context. | |
| const char * | getVersion () const |
| gets the version of SenSimRT | |
| void | setDisplayTextureID (GLuint textureID, bool enable=true) |
| sets the texture ID for the display texture feature and also the enable flag. | |
| bool | getUsePreviousFBO () const |
| void | setFilteringMode (int mode=1) |
| int | getFilteringMode () const |
| void | setMaxLightLevel (double maxLightLevel) |
| void | setMaxRadiance (double maxRadiance) |
| set the maximum radiance. | |
| void | setMinRadiance (double minRadiance) |
| set the minimum radiance. | |
| void | setApertureWidth (double apertureWidth) |
| set the aperture width. | |
| void | setApertureAspectRatio (double apertureWidth) |
| set the aperture aspect ratio. | |
| void | setNoiseEquivalentTemp (double apertureWidth) |
| set the noise equivalent temperature. | |
| void | setNoiseEquivalentRadiance (double apertureWidth) |
| set the noise equivalent radiance. | |
Protected Member Functions | |
| double | getDistortionScaleFactor () const |
| gets the distortion scale factor for OSV processing | |
| void | setHaloQEResponse (double QEResponse) |
Protected Attributes | |
| double | m_haloQEResponse |
| bool | m_usePreviousFBO |
Private Attributes | |
| bool | m_enableSensorEffects |
| Overall enable flag for sensor effects. | |
| bool | m_enableGPUSensorEffects |
| Flag that enables the GPU-based sensor effects rather than the CPU-based. | |
| bool | m_enableFilterEffects |
| Flag that enables the Filtering effect. | |
| bool | m_enableGainEffects |
| Flag that enables the Gain/Level effect. | |
| bool | m_enableNoiseEffects |
| Flag that enables the noise effect. | |
| bool | m_enableMotionBlurEffects |
| Flag that enables the motion blur effect. | |
| bool | m_enableHaloEffects |
| Flag that enables the halo effect. | |
| bool | m_enableAeroDynamicHeatingEffects |
| Flag that enables the aerodynamic heating effect. | |
| int | m_aeroDynamicHeatingGimbalMode |
| Flag that specifies the Gimbal mode the aerodynamic heating effect. | |
| seDetector * | m_detector |
| Detector object pointer. | |
| seOptics * | m_optics |
| Optics object pointer. | |
| seElectronics * | m_electronics |
| Electronics object pointer. | |
| seGainLevel * | m_gainLevel |
| Gain and level object pointer. | |
| seFilter * | m_filter |
| Filter object pointer. | |
| seNoise * | m_noise |
| Noise object pointer. | |
| seGpuProcessor * | m_gpuProcessor |
| Gpu processor object pointer. | |
| Implementation * | m_impl |
class: seSenSim
Top level class for sensor effects processing using SenSimRT techniques
| seSenSim::seSenSim | ( | ) |
constructor
| seSenSim::~seSenSim | ( | ) |
destructor
| bool seSenSim::initialize | ( | ) |
initialize sensor effects
| void seSenSim::outputImage | ( | char * | filename, |
| float * | inputImage, | ||
| long | numCols, | ||
| long | numRows | ||
| ) |
output an floating point image to a file.
| filename | |
| inputImage | |
| numCols | |
| numRows |
| void seSenSim::applyCpuSensorEffects | ( | float * | inputImage, |
| long | numCols, | ||
| long | numRows | ||
| ) |
apply slow-time cpu based sensor effects
| *inputImage | |
| numCols | |
| numRows |
| double seSenSim::getFocalLength | ( | ) | const |
gets the aperture's focal length (cm)
| double seSenSim::getFNumber | ( | ) | const |
gets the aperture's f number (unitless)
| seDetector* seSenSim::getDetector | ( | ) | const |
gets Detector object pointer
| seElectronics* seSenSim::getElectronics | ( | ) | const |
gets Electronics object pointer
| seGainLevel* seSenSim::getGainLevel | ( | ) | const |
gets gain/level object pointer
|
inline |
Sets the sensor effects enable flags in the interface.
| enable | |
| gpuEnable | |
| filterEnable | |
| noiseEnable | |
| gainEnable | |
| AGCenable | |
| haloEnable | |
| motionBlurEnable |
|
inline |
Gets the sensor effects enable flags in the interface.
set input size in width and height When the input size changes everything is initialized to work with the new resolution.
| w | - width of input texture |
| h | - height of input texture |
| use888Encoding | - use if 888 encoding is changing in real-time |
set input offset
| x | - x offset of the input |
| y | - y offset of the input |
set size of the display in width and height When the input size changes everything is initialized to work with the new resolution.
| w | - width of display |
| h | - height of display |
set display offset
| x | - x offset of the display |
| y | - y offset of the display |
| void seSenSim::applyGpuSensorEffects | ( | int | inputTextureId, |
| bool | usePreviousFBO = false, |
||
| float * | inputImage = NULL, |
||
| bool | swapBuffer = false, |
||
| bool | useTextureRect = false, |
||
| int | outputTextureId = 0 |
||
| ) |
description: applies all of the enabled sensor effects using the Gpu.
| inputTextureId | - optional texture to read the input from instead of the framebuffer |
| usePreviousFBO | - flag to indicate whether SenSim will render into a previously bound FBO or the back buffer |
| inputImage | - no longer used - now saveImage API is used |
| swapBuffer | |
| useTextureRect | |
| outputTextureId | - optional texture to save the SensorFX output to instead of the framebuffer |
| void seSenSim::getMTFSamples | ( | int | numSamples, |
| double & | xCutoffFreq, | ||
| double & | yCutoffFreq, | ||
| double * | xMTF, | ||
| double * | yMTF | ||
| ) | const |
Get both the horizontal and vertical mtf for a given number of samples, compute the cutoff frequencies and return the data in the provided arrays.
| numSamples | |
| &xCutoffFreq | |
| &yCutoffFreq | |
| *xMTF | |
| *yMTF |
|
inline |
indicates that filtering is on.
|
inline |
indicates that noise processing is on.
|
inline |
|
inline |
|
inline |
indicates that gain and level processing is on.
|
inline |
indicates that GPU real-time sensor effects processing is on.
| void seSenSim::setFilterAdjustment | ( | double | adjustment | ) |
Adjust the filter.
Higher level function for non license version.
| void seSenSim::setNoiseAdjustment | ( | double | adjustment | ) |
Adjust the noise.
Higher level function for non license version.
| void seSenSim::setGainAdjustment | ( | double | adjustment | ) |
Adjust the gain.
Higher level function for non license version.
| void seSenSim::setLevelAdjustment | ( | double | adjustment | ) |
Adjust the level.
Higher level function for non license version.
| double seSenSim::getFilterAdjustment | ( | ) | const |
Get the filter adjustment.
Higher level function for non license version.
| double seSenSim::getNoiseAdjustment | ( | ) | const |
Get the noise adjustment.
Higher level function for non license version.
| double seSenSim::getGainAdjustment | ( | ) | const |
Get the gain adjustment.
Higher level function for non license version.
| double seSenSim::getLevelAdjustment | ( | ) | const |
Get the level adjustment.
Higher level function for non license version.
| bool seSenSim::isBlackHotEnable | ( | ) | const |
Return true if blackhot is enabled.
Higher level function for non license version.
Set the blackhot enable on or off.
Higher level function for non license version.
| bool seSenSim::isAeroDynamicHeatingEnable | ( | ) | const |
Return true if aerodynamic heating is enabled.
Higher level function for non license version.
Set the aerodynamic heatin enable on or off.
Higher level function for non license version.
| int seSenSim::getAeroDynamicHeatingGimbalMode | ( | ) | const |
Return the Gimbal mode for aerodynamic heating.
Higher level function for non license version.
Set the Gimbal mode for aerodynamic heating.
Higher level function for non license version.
| void seSenSim::setBandpass | ( | const double | ax, |
| const double | bx | ||
| ) |
set the bandpass.
Higher level function for non license version.
| void seSenSim::setColorMapType | ( | seElectronics::ColorMapType | newColorMapType | ) |
sets the color map type.
Higher level function for non license version.
| newColorMapType |
| seElectronics::ColorMapType seSenSim::getColorMapType | ( | ) | const |
gets the color map type.
Higher level function for non license version.
sets the color map enable flag.
Higher level function for non license version. color mapping is off when 0, color mapping is on when > 0. Bayer filter is enabled when flag is 2
| flag |
| int seSenSim::getColorMapEnable | ( | ) | const |
gets the color map enable flag.
Higher level function for non license version.
| bool seSenSim::isFullColorEnable | ( | ) | const |
Return true if full color is enabled. Higher level function for non license version.
Set the full color enable on or off. Higher level function for non license version.
| void seSenSim::setSaveImage | ( | char * | saveFileName, |
| bool | preAperture = false, |
||
| bool | continuous = false, |
||
| bool | flip = true, |
||
| bool | detectorResolution = false |
||
| ) |
setup saving the radiance image output of sensim into a raw floating point format.
| saveFileName | |
| preAperture | |
| continuous | |
| flip | |
| detectorResolution |
| void seSenSim::setStopContinuous | ( | ) |
Tell seGpuProcessor to stop recording radiance images continuously.
| void seSenSim::setSaveImageFileName | ( | char * | saveFileName | ) |
setup file name for saving the radiance image output of sensim into a raw floating point format.
| saveFileName |
setup saving the radiance image output of sensim before the sensor effects are added (pre-aperture).
| preAperture |
setup saving the radiance image output into a continuous image stream.
| continuous |
setup to flip the image that is saved to match ImageJ.
| flip |
set the saved image to occur at the detector resolution rather than at display resolution
| flag |
| void seSenSim::setSaveRadianceImageEnable | ( | ) |
Cause the saving the radiance image(s) output of sensim to begin.
Cause the saving the radiance image(s) output of sensim to begin without saving files to disk.
| void seSenSim::applyAeroDynamicHeating | ( | float | azimuthOffset, |
| float | elevationOffset, | ||
| float | speed, | ||
| float | aeroDynamicHeating | ||
| ) |
set the azimuth and elevation offset, speed, scaled radiance, and gimbal mode for aerodynamic heating
| azimuthOffset | |
| elevationOffset | |
| speed | |
| aeroDynamicHeating |
| float* seSenSim::getRadianceImageArray | ( | ) | const |
get image array containing radiance image.
| float* seSenSim::getObjectIDImageArray | ( | ) | const |
get image array containing object ID image.
| float* seSenSim::getDownSampledRadianceImageArray | ( | ) | const |
get the down sampled image array containing radiance image.
| float* seSenSim::getDownSampledObjectIDImageArray | ( | ) | const |
get the down sampled image array containing object ID image.
get the size of the down sampled image
get the flag for enabling down sampled image captures
|
inline |
get the flag determining the state of down sampled image captures
set the state for object ID rendering for object ID buffer captures
|
inline |
get the state for object ID rendering and buffer captures
control factor that defines the number of rows (or scan lines) to subload in a frame for performance
| void seSenSim::setOutputImageArrayType | ( | OutputImageArrayType | type | ) |
sets the desired output type for image saves.
Default is standard radiance output type for TIFF frame buffer saves
| OutputImageArrayType seSenSim::getOutputImageArrayType | ( | ) | const |
gets the desired output type for image saves.
Default is standard radiance output type for TIFF frame buffer saves
| bool seSenSim::initializeLicense | ( | ) |
check the license and display the SenSimRT version This should be called before any other methods to verify that a SenSim license is available.
If this is not done, SenSimRT will execute. (note: this is also called by initialize).
| bool seSenSim::licenseCheck | ( | ) | const |
Checks for SenSimRT license registration - the initializeLicense method must first be called.
| bool seSenSim::openGLCheck | ( | ) | const |
Check if there is a rendering context.
| const char* seSenSim::getVersion | ( | ) | const |
gets the version of SenSimRT
sets the texture ID for the display texture feature and also the enable flag.
| textureID | - texture ID of the texture |
| enable | - enable the use of the display texture |
|
inline |
|
inline |
|
inline |
| void seSenSim::setMaxRadiance | ( | double | maxRadiance | ) |
set the maximum radiance.
Higher level function for non license version.
| void seSenSim::setMinRadiance | ( | double | minRadiance | ) |
set the minimum radiance.
Higher level function for non license version.
| void seSenSim::setApertureWidth | ( | double | apertureWidth | ) |
set the aperture width.
Higher level function for non license version.
| void seSenSim::setApertureAspectRatio | ( | double | apertureWidth | ) |
set the aperture aspect ratio.
Higher level function for non license version.
| void seSenSim::setNoiseEquivalentTemp | ( | double | apertureWidth | ) |
set the noise equivalent temperature.
Higher level function for non license version.
| void seSenSim::setNoiseEquivalentRadiance | ( | double | apertureWidth | ) |
set the noise equivalent radiance.
Higher level function for non license version.
|
inlineprotected |
gets the distortion scale factor for OSV processing
|
inlineprotected |
|
protected |
|
protected |
|
private |
Overall enable flag for sensor effects.
|
private |
Flag that enables the GPU-based sensor effects rather than the CPU-based.
|
private |
Flag that enables the Filtering effect.
|
private |
Flag that enables the Gain/Level effect.
|
private |
Flag that enables the noise effect.
|
private |
Flag that enables the motion blur effect.
|
private |
Flag that enables the halo effect.
|
private |
Flag that enables the aerodynamic heating effect.
|
private |
Flag that specifies the Gimbal mode the aerodynamic heating effect.
|
private |
Detector object pointer.
|
private |
Optics object pointer.
|
private |
Electronics object pointer.
|
private |
Gain and level object pointer.
|
private |
Filter object pointer.
|
private |
Noise object pointer.
|
private |
Gpu processor object pointer.
|
private |