nndeploy C++ API
0.2.0
nndeploy C++ API
plugin
include
nndeploy
segment
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
"
6
#include "
nndeploy/device/tensor.h
"
7
8
namespace
nndeploy
{
9
namespace
segment {
10
15
class
NNDEPLOY_CC_API
SegmentResult
:
public
base::Param
{
16
public
:
17
SegmentResult
(){};
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_ */
nndeploy::base::Param
Definition:
param.h:37
nndeploy::device::Tensor
Tensorē±»
Definition:
tensor.h:26
nndeploy::segment::SegmentResult
Detect Result.
Definition:
result.h:15
nndeploy::segment::SegmentResult::SegmentResult
SegmentResult()
Definition:
result.h:17
nndeploy::segment::SegmentResult::~SegmentResult
virtual ~SegmentResult()
Definition:
result.h:18
NNDEPLOY_CC_API
#define NNDEPLOY_CC_API
api
Definition:
macro.h:29
nndeploy
Definition:
common.h:10
param.h
tensor.h
Generated by
1.9.1