nndeploy C++ API  0.2.0
nndeploy C++ API
result.h
Go to the documentation of this file.
1 
2 #ifndef _NNDEPLOY_SEGMENT_RESULT_H_
3 #define _NNDEPLOY_SEGMENT_RESULT_H_
4 
5 #include "nndeploy/base/param.h"
7 
8 namespace nndeploy {
9 namespace segment {
10 
16  public:
18  virtual ~SegmentResult() {
19  if (mask_ != nullptr) {
20  delete mask_;
21  mask_ = nullptr;
22  }
23  if (score_ != nullptr) {
24  delete score_;
25  score_ = nullptr;
26  }
27  };
28 
29  device::Tensor *mask_ = nullptr;
30  device::Tensor *score_ = nullptr;
31  int height_ = -1;
32  int width_ = -1;
33  int classes_ = -1;
34 };
35 
36 } // namespace segment
37 } // namespace nndeploy
38 
39 #endif /* _NNDEPLOY_SEGMENT_RESULT_H_ */
Tensorē±»
Definition: tensor.h:26
#define NNDEPLOY_CC_API
api
Definition: macro.h:29