nndeploy C++ API  0.2.0
nndeploy C++ API
drawmask.h
Go to the documentation of this file.
1 #ifndef _NNDEPLOY_SEGMENT_DRAWMASK_H_
2 #define _NNDEPLOY_SEGMENT_DRAWMASK_H_
3 
6 #include "nndeploy/dag/node.h"
10 
11 namespace nndeploy {
12 namespace segment {
13 
15  public:
16  DrawMask(const std::string &name) : Node(name) {
17  key_ = "nndeploy::segment::DrawMask";
18  desc_ =
19  "Draw segmentation mask on input cv::Mat image based on segmentation "
20  "results[cv::Mat->cv::Mat]";
21  this->setInputTypeInfo<cv::Mat>();
22  this->setInputTypeInfo<SegmentResult>();
23  this->setOutputTypeInfo<cv::Mat>();
24  }
25  DrawMask(const std::string &name, std::vector<dag::Edge *> inputs,
26  std::vector<dag::Edge *> outputs)
27  : Node(name, inputs, outputs) {
28  key_ = "nndeploy::segment::DrawMask";
29  desc_ =
30  "Draw segmentation mask on input cv::Mat image based on segmentation "
31  "results[cv::Mat->cv::Mat]";
32  this->setInputTypeInfo<cv::Mat>();
33  this->setInputTypeInfo<SegmentResult>();
34  this->setOutputTypeInfo<cv::Mat>();
35  }
36  virtual ~DrawMask() {}
37 
38  virtual base::Status run();
39 };
40 
41 } // namespace segment
42 } // namespace nndeploy
43 
44 #endif
Node base class.
Definition: node.h:171
DrawMask(const std::string &name)
Definition: drawmask.h:16
DrawMask(const std::string &name, std::vector< dag::Edge * > inputs, std::vector< dag::Edge * > outputs)
Definition: drawmask.h:25
virtual base::Status run()
Run node (pure virtual function)
#define NNDEPLOY_CC_API
api
Definition: macro.h:29