Perform 2D semantic segmentation based on the FCN network (Not available for Android!). UUID: 77a8b776-6b0c-4bc0-b0a8-437a796b8e29
More...
#include <SolARFCNSegmentationOpencv.h>
|
org::bcom::xpcf::XPCFErrorCode | onConfigured () override final |
|
void | unloadComponent () override |
|
FrameworkReturnCode | segment (const SRef< SolAR::datastructure::Image > image, SRef< SolAR::datastructure::Image > &mask) override |
| Perform 2D semantic segmentation. More...
|
|
Perform 2D semantic segmentation based on the FCN network (Not available for Android!). UUID: 77a8b776-6b0c-4bc0-b0a8-437a796b8e29
- Properties
m_modelFile | the path to the fcn model file |
type: string; default: "" |
m_modelConfig | the path to the model configuration file |
type: string; default: "" |
◆ segment()
FrameworkReturnCode SolAR::MODULES::OPENCV::SolARFCNSegmentationOpencv::segment |
( |
const SRef< SolAR::datastructure::Image > |
image, |
|
|
SRef< SolAR::datastructure::Image > & |
mask |
|
) |
| |
|
override |
Perform 2D semantic segmentation.
- Parameters
-
[in] | image | The input image. |
[out] | mask | The mask has same size as the input image, in which the value of each pixel is corresponding to the class id. |
- Returns
- FrameworkReturnCode::SUCCESS if the segmentation succeed, else FrameworkReturnCode::_ERROR
The documentation for this class was generated from the following file: