Resonon API
3.12 [Deprecated]
C++ API for controlling Resonon hyperspectral imagers
|
An abstract base class which provides a common interface for all imagers. More...
#include "resonon_imager_base.h"
Public Member Functions | |
ResononImagerBase () | |
virtual | ~ResononImagerBase () |
virtual void | connect (const char *camera_sn=NULL)=0 |
virtual void | disconnect ()=0 |
virtual void | start ()=0 |
virtual void | stop ()=0 |
virtual void | get_imager_type (char *buffer, int buffer_size)=0 |
virtual void | get_serial_number (char *buffer, int buffer_size)=0 |
virtual void | get_camera_serial_number (char *buffer, int buffer_size)=0 |
virtual void | generate_configuration_report (char *buffer, int buffer_size)=0 |
virtual float | get_coeff_a ()=0 |
virtual float | get_coeff_b ()=0 |
virtual float | get_coeff_c ()=0 |
virtual double | get_wavelength_at_band (const int band)=0 |
int | get_nearest_band_to_wavelength (const double wavelength) |
Return the band number that is closest to the requested wavelength from the current windowing settings. More... | |
virtual int | get_frame_buffer_size_in_bytes ()=0 |
virtual unsigned short * | get_frame (unsigned short *buffer)=0 |
virtual std::uint64_t | get_last_timestamp ()=0 |
virtual std::uint64_t | ticks_per_second ()=0 |
virtual void | set_spectral_bin (int new_spectral_bin) |
Set the binning in the spectral dimension, if supported by the camera. More... | |
virtual int | get_spectral_bin () |
Get the current spectral binning setting. More... | |
virtual int | get_min_spectral_bin () |
Get the minimum spectral binning setting. More... | |
virtual int | get_max_spectral_bin () |
Get the maximum spectral binning setting. More... | |
virtual int | get_band_count ()=0 |
virtual int | get_start_band () |
Get the start of the user-defined spectral window. More... | |
virtual void | set_start_band (int band) |
Set the first band in the user-defined spectral window. More... | |
virtual int | get_min_start_band () |
Get the minimum band number allowed for the start of the spectral window at current settings. More... | |
virtual int | get_max_start_band () |
Get the maximum band number allowed for the start of the spectral window at current settings. More... | |
virtual int | get_inc_start_band () |
Get the increment for valid value of the start of the spectral window at current settings. More... | |
virtual int | get_end_band () |
Get the end of the user-defined spectral window. More... | |
virtual void | set_end_band (int band) |
Set the end of the user-defined spectral window. More... | |
virtual int | get_min_end_band () |
Get the minimum band number allowed for the end of the user-defined spectral window at current settings. More... | |
virtual int | get_max_end_band () |
Get the maximum band number allowed for the end of the user-defined spectral window at current settings. More... | |
virtual int | get_inc_end_band () |
Get the increment for valid value of the end of the user-defined spectral window at current settings. More... | |
virtual int | get_sample_count ()=0 |
virtual int | get_start_sample () |
Get the start of the user-defined spatial window. More... | |
virtual void | set_start_sample (int sample) |
Set the first sample in the user-defined spatial window. More... | |
virtual int | get_min_start_sample () |
Get the minimum sample number allowed for the start of the spatial window at current settings. More... | |
virtual int | get_max_start_sample () |
Get the maximum sample number allowed for the start of the spatial window at current settings. More... | |
virtual int | get_inc_start_sample () |
Get the increment for valid value of the start of the spatial window at current settings. More... | |
virtual int | get_end_sample () |
Get the end of the user-defined spatial window. More... | |
virtual void | set_end_sample (int sample) |
Set the end of the user-defined spatial window. More... | |
virtual int | get_min_end_sample () |
Get the minimum sample number allowed for the end of the user-defined spatial window at current settings. More... | |
virtual int | get_max_end_sample () |
Get the maximum sample number allowed for the end of the user-defined spatial window at current settings. More... | |
virtual int | get_inc_end_sample () |
Get the increment for valid value of the end of the user-defined spatial window at current settings. More... | |
virtual void | set_framerate (const double frames_per_second)=0 |
virtual double | get_framerate ()=0 |
virtual double | get_min_framerate ()=0 |
virtual double | get_max_framerate ()=0 |
virtual double | get_min_integration_time ()=0 |
virtual double | get_max_integration_time ()=0 |
virtual void | set_integration_time (const double milliseconds)=0 |
virtual double | get_integration_time ()=0 |
virtual void | set_gain (const double gain) |
Sets the camera gain. More... | |
virtual double | get_gain () |
Gets the camera gain setting. More... | |
virtual double | get_min_gain () |
Gets the camera minimum gain setting. More... | |
virtual double | get_max_gain () |
Gets the camera maximum gain setting. More... | |
virtual void | set_internal_trigger () |
Sets the camera triggering to internal (automatic). More... | |
virtual void | set_external_trigger (unsigned int signal_line, bool rising_edge=true) |
Set the camera to externally triggered mode. More... | |
virtual bool | is_trigger_external () |
Polls the imager to see if triggering is set to external. More... | |
An abstract base class which provides a common interface for all imagers.
ResononImagerBase::ResononImagerBase | ( | ) |
|
virtual |
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Get the end of the user-defined spectral window.
This is the first band AFTER the spectral window.
std::runtime_error | on error or if the camera does not support spectral windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the end of the user-defined spatial window.
This is the first sample AFTER the spatial window.
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Gets the camera gain setting.
std::runtime_error | if the camera does not support gain. |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Get the increment for valid value of the end of the user-defined spectral window at current settings.
This is the first band AFTER the spectral window.
std::runtime_error | on error or if the camera does not support spectral windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the increment for valid value of the end of the user-defined spatial window at current settings.
This is the first sample AFTER the spatial window.
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the increment for valid value of the start of the spectral window at current settings.
std::runtime_error | on error or if the camera does not support spectral windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the increment for valid value of the start of the spatial window at current settings.
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Get the maximum band number allowed for the end of the user-defined spectral window at current settings.
This is the first band AFTER the spectral window.
std::runtime_error | on error or if the camera does not support spectral windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the maximum sample number allowed for the end of the user-defined spatial window at current settings.
This is the first sample AFTER the spatial window.
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Gets the camera maximum gain setting.
std::runtime_error | if the camera does not support gain. |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Get the maximum spectral binning setting.
For some imagers this is always 1.
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the maximum band number allowed for the start of the spectral window at current settings.
std::runtime_error | on error or if the camera does not support spectral windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the maximum sample number allowed for the start of the spatial window at current settings.
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the minimum band number allowed for the end of the user-defined spectral window at current settings.
This is the first band AFTER the spectral window.
std::runtime_error | on error or if the camera does not support spectral windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the minimum sample number allowed for the end of the user-defined spatial window at current settings.
This is the first sample AFTER the spatial window.
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Gets the camera minimum gain setting.
std::runtime_error | if the camera does not support gain. |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Get the minimum spectral binning setting.
For some imagers this is always 1.
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the minimum band number allowed for the start of the spectral window at current settings.
std::runtime_error | on error or if the camera does not support spectral windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the minimum sample number allowed for the start of the spatial window at current settings.
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
int ResononImagerBase::get_nearest_band_to_wavelength | ( | const double | wavelength | ) |
Return the band number that is closest to the requested wavelength from the current windowing settings.
The actual wavelength at this band can be calculated by calling ResononImagerBase::get_wavelength_at_band() with the resulting band number. If two bands are exactly the same distance from the requested wavelength, the lower of the bands will be returned.
wavelength | The requested wavelength(nm). |
std::runtime_error | if the imager is not connected. |
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Get the current spectral binning setting.
For some imagers this is always 1.
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the start of the user-defined spectral window.
std::runtime_error | on error or if the camera does not support spectral windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Get the start of the user-defined spatial window.
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Polls the imager to see if triggering is set to external.
std::runtime_error | on error. |
Reimplemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Set the end of the user-defined spectral window.
This is the first band AFTER the spectral window.
std::domain_error | if band is invalid for current binning settings |
std::runtime_error | on error or if the camera does not support spectral windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Set the end of the user-defined spatial window.
This is the first sample AFTER the spatial window.
std::domain_error | if sample is invalid for current binning settings |
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Set the camera to externally triggered mode.
signal_line | The signal trigger source. See subclass documentation for valid values. |
rising_edge | Set to true to trigger on the rising edge or false to trigger on the falling edge. |
std::runtime_error | on error or if the camera does not support external triggering. |
Reimplemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Sets the camera gain.
std::runtime_error | on error or if the camera does not support gain. |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Sets the camera triggering to internal (automatic).
std::runtime_error | on error. |
Reimplemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
virtual |
Set the binning in the spectral dimension, if supported by the camera.
[in] | new_spectral_bin | Desired binning in the spectral dimension. |
std::runtime_error | if camera does not support binning or if invalid binning settings are requested. |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Set the first band in the user-defined spectral window.
std::domain_error | if band is invalid for current binning settings |
std::runtime_error | on error |
Reimplemented in Resonon::PikaBasler.
|
virtual |
Set the first sample in the user-defined spatial window.
std::domain_error | if sample is invalid for current binning settings |
std::runtime_error | on error or if the camera does not support spatial windowing |
Reimplemented in Resonon::PikaBasler.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.
|
pure virtual |
Implemented in Resonon::PikaBasler, and Resonon::PikaAllied.