![]() |
VR-Vantage 3.0 API Documentation
|
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 | |
| seElectronics * | getElectronics () const |
| gets Noise object pointer | |
| seGainLevel * | getGainLevel () const |
| gets gain/level object pointer | |
| void | setSensorEffectsFlags (bool enable, bool gpuEnable, bool filterEnable, bool noiseEnable, bool gainEnable, 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 display size in width and height | |
| void | setDisplayOffset (int x, int y, bool clearBuffer=true) |
| set display offset | |
| void | applyGpuSensorEffects (int inputTextureId, 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. | |
| void | setBandpass (const double ax, const double bx) |
| set the bandpass. | |
| 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) |
| 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 | 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. | |
| 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 |
| set the state for object ID rendering and buffer captures | |
| 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. | |
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_license |
| Flag indicating that the license is valid. | |
| 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 Noise 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 | |
| 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 display size in width and height
| w | - width of display output |
| h | - height of display outpu |
set display offset
| x | - x offset of the display |
| y | - y offset of the display |
| clearBuffer | - when offsets are not -1,-1 this flag determines whether the back buffer should be cleared. |
| void seSenSim::applyGpuSensorEffects | ( | int | inputTextureId, |
| 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 |
| 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.
| void seSenSim::setBandpass | ( | const double | ax, |
| const double | bx | ||
| ) |
set the bandpass.
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 |
||
| ) |
setup saving the radiance image output of sensim into a raw floating point format.
| saveFileName | |
| preAperture | |
| continuous | |
| flip |
| 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 |
| 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.
| 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 |
set the state for object ID rendering and buffer captures
| 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 |
|
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 indicating that the license is valid.
|
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 |