FastDeploy
latest
Fast & Easy to Deploy!
|
#include <result.h>
Inherits fastdeploy::vision::BaseResult.
Public Member Functions | |
void | Clear () |
clear Mask result | |
void | Free () |
Clear Mask result and free the memory. | |
void * | Data () |
Return a mutable pointer of the mask data buffer. | |
const void * | Data () const |
Return a pointer of the mask data buffer for read only. | |
void | Reserve (int size) |
Reserve size for mask data buffer. | |
void | Resize (int size) |
Resize the mask data buffer. | |
std::string | Str () |
Debug function, convert the result to string to print. | |
Public Attributes | |
std::vector< uint8_t > | data |
Mask data buffer. | |
std::vector< int64_t > | shape |
Shape of mask. | |
Mask structure, used in DetectionResult for instance segmentation models