Solar
|
Draws masks on top of an image. UUID: 35a2454a-cb09-44ac-b2ce-0b0732175f94
More...
#include <IMaskOverlay.h>
Public Member Functions | |
IMaskOverlay ()=default | |
IMaskOverlay default constructor. | |
virtual | ~IMaskOverlay ()=default |
IMaskOverlay default destructor. | |
virtual FrameworkReturnCode | draw (SRef< SolAR::datastructure::Image > image, const std::vector< SolAR::datastructure::Rectanglei > &boxes, const std::vector< SRef< SolAR::datastructure::Image > > &masks, const std::vector< uint32_t > &classIds, const std::vector< float > &scores)=0 |
Draw masks on an image. More... | |
virtual FrameworkReturnCode | draw (SRef< SolAR::datastructure::Image > image, const SRef< SolAR::datastructure::Image > mask)=0 |
Draw masks on an image. More... | |
Draws masks on top of an image. UUID: 35a2454a-cb09-44ac-b2ce-0b0732175f94
|
pure virtual |
Draw masks on an image.
[in,out] | image | The image on which the masks will be drawn. |
[in] | mask | The mask has same size as the input image, in which the value of each pixel is corresponding to the class id. |
|
pure virtual |
Draw masks on an image.
[in,out] | image | The image on which the masks will be drawn. |
[in] | boxes | The bounding boxes of each detected object. |
[in] | masks | The binary masks corresponding to the bounding boxes. For each mask, regions with a value of 1 correspond to the object, otherwise the background. |
[in] | classIds | The id of each object in the bounding box. |
[in] | scores | The corresponding confidence scores. |