Class Displayer
Base class used to display images queried from each camera. More...
#include <display.h>
Inherits the following classes: QObject
Inherited by the following classes: DisplayerFunctional
Public Attributes
| Type | Name |
|---|---|
| QString | m_cameraType Stores the type or model of the camera currently used. |
Public Slots
| Type | Name |
|---|---|
| slot void | Display (XI_IMG & image) Qt slot in charge of displaying images. |
Public Signals
| Type | Name |
|---|---|
| signal void | ImageReadyToUpdateRGB (QImage) Qt signal emitted when an RGB image is ready to be displayed in the UI. |
| signal void | ImageReadyToUpdateRaw (QImage) Qt signal emitted when a raw image is ready to be displayed in the UI. |
| signal void | SaturationPercentageReady (double undersaturation, double oversaturation) Qt signal emitted when the saturation values are ready to be displayed in the UI. |
Public Functions
| Type | Name |
|---|---|
| Displayer (QObject * parent=nullptr) |
|
| virtual void | SetCameraProperties (QString cameraModel) = 0 Configures the camera properties based on the provided camera model. |
| void | StartDisplayer () Allows to start or continue displaying images. |
| void | StopDisplayer () Blocks the display of images. |
| virtual void | UpdateBGRChannels (const std::vector< int > & bgrChannels) Updates the BGR channel values for the displayer. |
| virtual void | UpdateLut (int minValue, int maxValue, const QColor & darkColor, const QColor & saturatedColor) Updates the lookup table (LUT) with the specified minimum and maximum values. |
| ~Displayer () override |
Protected Attributes
| Type | Name |
|---|---|
| QColor | m_darkColor The color used to highlight underexposed regions of the image. |
| boost::condition_variable | m_displayCondition Condition variable used to wait until a new image is available to be processed. |
| QColor | m_saturatedColor |
| bool | m_stop = falseIndicate that process should stop displaying images. |
Detailed Description
This class implements several Qt signals that are triggered when new images are ready to be displayed. For example, RGB, raw, and saturation percentages for each image.
Whether images are to be displayed or not are also controlled through the variable Displayer::m_stop.
Public Attributes Documentation
variable m_cameraType
Stores the type or model of the camera currently used.
Public Slots Documentation
slot Display
Qt slot in charge of displaying images.
Parameters:
image
Public Signals Documentation
signal ImageReadyToUpdateRGB
Qt signal emitted when an RGB image is ready to be displayed in the UI.
signal ImageReadyToUpdateRaw
Qt signal emitted when a raw image is ready to be displayed in the UI.
signal SaturationPercentageReady
Qt signal emitted when the saturation values are ready to be displayed in the UI.
Public Functions Documentation
function Displayer
function SetCameraProperties
Configures the camera properties based on the provided camera model.
This pure virtual method must be implemented by derived classes to initialize or modify display-related behaviors or settings according to the specified camera model.
Parameters:
cameraModelA string representing the model of the camera, used
function StartDisplayer
Allows to start or continue displaying images.
function StopDisplayer
Blocks the display of images.
function UpdateBGRChannels
Updates the BGR channel values for the displayer.
This method is used to set the values of the Blue, Green, and Red channels for processing or rendering purposes. The values provided in the input parameter define the specific intensities or configurations for each channel.
Parameters:
bgrChannelsA vector containing the values for the Blue, Green, and Red channels, typically in the order [Blue, Green, Red].
function UpdateLut
Updates the lookup table (LUT) with the specified minimum and maximum values.
virtual void Displayer::UpdateLut (
int minValue,
int maxValue,
const QColor & darkColor,
const QColor & saturatedColor
)
This method adjusts the LUT range to enhance or modify the image display settings based on the given values. It allows flexibility in defining the lower and upper bounds of the LUT.
Parameters:
minValueThe minimum value for the LUT.maxValueThe maximum value for the LUT.darkColorThe color used to highlight underexposed regions in an image.saturatedColorThe color used to highlight overexposed regions in an image.
function ~Displayer
Protected Attributes Documentation
variable m_darkColor
The color used to highlight underexposed regions of the image.
variable m_displayCondition
Condition variable used to wait until a new image is available to be processed.
variable m_saturatedColor
The color used to highlight overexposed regions of the image.
variable m_stop
Indicate that process should stop displaying images.
The documentation for this class was generated from the following file src/display.h