123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- #ifndef __OPENCV_SEEDS_HPP__
- #define __OPENCV_SEEDS_HPP__
- #ifdef __cplusplus
- #include <opencv2/core.hpp>
- namespace cv
- {
- namespace ximgproc
- {
- class CV_EXPORTS_W SuperpixelSEEDS : public Algorithm
- {
- public:
-
- CV_WRAP virtual int getNumberOfSuperpixels() = 0;
-
- CV_WRAP virtual void iterate(InputArray img, int num_iterations=4) = 0;
-
- CV_WRAP virtual void getLabels(OutputArray labels_out) = 0;
-
- CV_WRAP virtual void getLabelContourMask(OutputArray image, bool thick_line = false) = 0;
- virtual ~SuperpixelSEEDS() {}
- };
- CV_EXPORTS_W Ptr<SuperpixelSEEDS> createSuperpixelSEEDS(
- int image_width, int image_height, int image_channels,
- int num_superpixels, int num_levels, int prior = 2,
- int histogram_bins=5, bool double_step = false);
- }
- }
- #endif
- #endif
|