123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- #ifndef __OPENCV_SLIC_HPP__
- #define __OPENCV_SLIC_HPP__
- #ifdef __cplusplus
- #include <opencv2/core.hpp>
- namespace cv
- {
- namespace ximgproc
- {
- class CV_EXPORTS_W SuperpixelSLIC : public Algorithm
- {
- public:
-
- CV_WRAP virtual int getNumberOfSuperpixels() const = 0;
-
- CV_WRAP virtual void iterate( int num_iterations = 10 ) = 0;
-
- CV_WRAP virtual void getLabels( OutputArray labels_out ) const = 0;
-
- CV_WRAP virtual void getLabelContourMask( OutputArray image, bool thick_line = true ) const = 0;
-
- CV_WRAP virtual void enforceLabelConnectivity( int min_element_size = 25 ) = 0;
- };
- enum SLIC { SLIC = 100, SLICO = 101 };
- CV_EXPORTS_W Ptr<SuperpixelSLIC> createSuperpixelSLIC( InputArray image, int algorithm = SLICO,
- int region_size = 10, float ruler = 10.0f );
- }
- }
- #endif
- #endif
|