Solar
Public Member Functions | List of all members
SolAR::MODULES::OPENCV::SolARFCNSegmentationOpencv Class Reference

Perform 2D semantic segmentation based on the FCN network (Not available for Android!). UUID: 77a8b776-6b0c-4bc0-b0a8-437a796b8e29 More...

#include <SolARFCNSegmentationOpencv.h>

Inheritance diagram for SolAR::MODULES::OPENCV::SolARFCNSegmentationOpencv:
Inheritance graph
[legend]
Collaboration diagram for SolAR::MODULES::OPENCV::SolARFCNSegmentationOpencv:
Collaboration graph
[legend]

Public Member Functions

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...
 

Detailed Description

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: ""

Member Function Documentation

◆ 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]imageThe input image.
[out]maskThe 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: