1 #ifndef _NNDEPLOY_SEGMENT_DRAWMASK_H_
2 #define _NNDEPLOY_SEGMENT_DRAWMASK_H_
16 DrawMask(
const std::string &name) : Node(name) {
17 key_ =
"nndeploy::segment::DrawMask";
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>();
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";
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>();
DrawMask(const std::string &name)
DrawMask(const std::string &name, std::vector< dag::Edge * > inputs, std::vector< dag::Edge * > outputs)
virtual base::Status run()
Run node (pure virtual function)
#define NNDEPLOY_CC_API
api