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;
JEVOIS_REGISTER_MODULE(ArUcoBlob)
Segment an image using super-pixels.
SuperPixelSeg(std::string const &instance)
Constructor.
virtual void process(jevois::InputFrame &&inframe, jevois::OutputFrame &&outframe) override
Processing function.
virtual ~SuperPixelSeg()
Virtual destructor for safe inheritance.
friend friend class Module
void require(char const *info, unsigned int w, unsigned int h, unsigned int f) const
std::string const & stop(double *seconds)
cv::Mat cvImage(RawImage const &src)
cv::Mat convertToCvRGB(RawImage const &src)