Spoofing Detection Engine  1.0
Public Member Functions | Public Attributes | List of all members
visualization::VisualAsset Class Reference

The VisualAsset class manages visual assets like images for rendering and manipulation. More...

#include <VisualAsset.h>

Public Member Functions

 VisualAsset ()=default
 Constructor for VisualAsset.
 
 ~VisualAsset ()=default
 Destructor for VisualAsset.
 
void load (std::string imagePath)
 Loads an image from a file path. More...
 
void load (std::vector< uchar > imageContainer)
 Loads an image from a memory buffer. More...
 
void drawOnImage (cv::Mat &dstImage, cv::Rect dstArea, double scale=1.0, double rotation=0.0)
 Draws the loaded image onto another image. More...
 

Public Attributes

std::string id
 The identifier for the visual asset.
 
cv::Mat4b content
 The image content of the visual asset.
 
bool isActive = true
 Flag to indicate if the visual asset is active.
 

Detailed Description

The VisualAsset class manages visual assets like images for rendering and manipulation.

This class is responsible for loading, manipulating, and drawing images using OpenCV functionalities.

Member Function Documentation

◆ drawOnImage()

void visualization::VisualAsset::drawOnImage ( cv::Mat &  dstImage,
cv::Rect  dstArea,
double  scale = 1.0,
double  rotation = 0.0 
)

Draws the loaded image onto another image.

Parameters
dstImageThe destination image to draw onto.
dstAreaThe area on the destination image to draw the asset.
scaleScaling factor for the asset.
rotationRotation angle for the asset in degrees.
Here is the caller graph for this function:

◆ load() [1/2]

void visualization::VisualAsset::load ( std::string  imagePath)

Loads an image from a file path.

Parameters
imagePathThe path to the image file.

◆ load() [2/2]

void visualization::VisualAsset::load ( std::vector< uchar >  imageContainer)

Loads an image from a memory buffer.

Parameters
imageContainerA vector of unsigned chars representing the image data.

The documentation for this class was generated from the following files: