|
FastDeploy
latest
Fast & Easy to Deploy!
|
Segmentation result structure for all the segmentation models. More...
#include <result.h>
Inherits fastdeploy::vision::BaseResult.
Public Member Functions | |
| SegmentationResult (const SegmentationResult &other)=default | |
| Copy constructor. | |
| SegmentationResult & | operator= (SegmentationResult &&other) |
| Move assignment. | |
| void | Clear () |
| Clear Segmentation result. | |
| void | Free () |
| Clear Segmentation result and free the memory. | |
| std::string | Str () |
| Debug function, convert the result to string to print. | |
Public Attributes | |
| std::vector< uint8_t > | label_map |
label_map stores the pixel-level category labels for input image. the number of pixels is equal to label_map.size() | |
| std::vector< float > | score_map |
score_map stores the probability of the predicted label for each pixel of input image. | |
| std::vector< int64_t > | shape |
| The output shape, means [H, W]. | |
| bool | contain_score_map = false |
| SegmentationResult whether containing score_map. | |
Segmentation result structure for all the segmentation models.
1.8.13