23#include <opencv2/core/core.hpp>
24#include <opencv2/imgproc/imgproc.hpp>
50 OutType::Contours, OutType_Values, ParamCateg);
57 public jevois::Parameter<superpixel::algo, superpixel::regionsize, superpixel::numpix,
58 superpixel::iterations, superpixel::output>
69 void process(cv::Mat
const & inimg, cv::Mat & outimg);
Superpixel image segmentation from OpenCV.
JEVOIS_DECLARE_PARAMETER(numpix, int, "Number of SEEDS superpixels", 200, ParamCateg)
Parameter.
JEVOIS_DECLARE_PARAMETER(algo, Algo, "Algorithm variant to use", Algo::SLICO, Algo_Values, ParamCateg)
Parameter.
JEVOIS_DECLARE_PARAMETER(iterations, int, "Number of iterations", 6, jevois::Range< int >(1, 100), ParamCateg)
Parameter.
void process(cv::Mat const &inimg, cv::Mat &outimg)
Process an RGB image and get some greyscale results.
JEVOIS_DEFINE_ENUM_CLASS(Algo,(SLIC)(SLICO)(SEEDS))
Enum for parameter.
virtual ~SuperPixel()
Virtual destructor for safe inheritance.
JEVOIS_DECLARE_PARAMETER(output, OutType, "Output labels or demo grayscale input image with superimposed contours", OutType::Contours, OutType_Values, ParamCateg)
Parameter.
JEVOIS_DEFINE_ENUM_CLASS(OutType,(Labels)(Contours))
Enum for parameter.
JEVOIS_DECLARE_PARAMETER(regionsize, int, "SLIC Region size", 30, ParamCateg)
Parameter.
friend friend class Component