JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
27 #include <linux/videodev2.h>
76 { itsSuperPixel = addSubComponent<SuperPixel>(
"superpixel"); }
88 inimg.
require(
"input",
w,
h, V4L2_PIX_FMT_YUYV);
100 outimg.
require(
"output",
w,
h, V4L2_PIX_FMT_GREY);
104 itsSuperPixel->process(cvimg, grayimg);
114 std::shared_ptr<SuperPixel> itsSuperPixel;
virtual ~SuperPixelSeg()
Virtual destructor for safe inheritance.
cv::Mat convertToCvRGB(RawImage const &src)
JEVOIS_REGISTER_MODULE(SuperPixelSeg)
void require(char const *info, unsigned int w, unsigned int h, unsigned int f) const
const std::string & stop(double *seconds)
cv::Mat cvImage(RawImage const &src)
Segment an image using super-pixels.
virtual void process(jevois::InputFrame &&inframe, jevois::OutputFrame &&outframe) override
Processing function.
friend friend class Module
SuperPixelSeg(std::string const &instance)
Constructor.