FastDeploy  latest
Fast & Easy to Deploy!
Public Member Functions | Public Attributes | List of all members
fastdeploy::vision::MattingResult Struct Reference

Matting result structure for all the Matting models. More...

#include <result.h>

Inherits fastdeploy::vision::BaseResult.

Public Member Functions

void Clear ()
 Clear matting result.
 
void Free ()
 Free matting result.
 
std::string Str ()
 Debug function, convert the result to string to print.
 

Public Attributes

std::vector< float > alpha
 alpha is a one-dimensional vector, which is the predicted alpha transparency value. The range of values is [0., 1.], and the length is hxw. h, w are the height and width of the input image
 
std::vector< float > foreground
 If the model can predict foreground, foreground save the predicted foreground image, the shape is [hight,width,channel] generally.
 
std::vector< int64_t > shape
 The shape of output result, when contain_foreground == false, shape only contains (h, w), when contain_foreground == true, shape contains (h, w, c), and c is generally 3.
 
bool contain_foreground = false
 If the model can predict alpha matte and foreground, contain_foreground = true, default false.
 

Detailed Description

Matting result structure for all the Matting models.


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