// // This file is auto-generated. Please don't modify it! // #pragma once #ifdef __cplusplus //#import "opencv.hpp" #import "opencv2/bgsegm.hpp" #else #define CV_EXPORTS #endif #import #import "BackgroundSubtractor.h" @class Mat; NS_ASSUME_NONNULL_BEGIN // C++: class BackgroundSubtractorCNT /** * Background subtraction based on counting. * * About as fast as MOG2 on a high end system. * More than twice faster than MOG2 on cheap hardware (benchmarked on Raspberry Pi3). * * %Algorithm by Sagi Zeevi ( https://github.com/sagi-z/BackgroundSubtractorCNT ) * * Member of `Bgsegm` */ CV_EXPORTS @interface BackgroundSubtractorCNT : BackgroundSubtractor #ifdef __cplusplus @property(readonly)cv::Ptr nativePtrBackgroundSubtractorCNT; #endif #ifdef __cplusplus - (instancetype)initWithNativePtr:(cv::Ptr)nativePtr; + (instancetype)fromNative:(cv::Ptr)nativePtr; #endif #pragma mark - Methods // // void cv::bgsegm::BackgroundSubtractorCNT::apply(Mat image, Mat& fgmask, double learningRate = -1) // - (void)apply:(Mat*)image fgmask:(Mat*)fgmask learningRate:(double)learningRate NS_SWIFT_NAME(apply(image:fgmask:learningRate:)); - (void)apply:(Mat*)image fgmask:(Mat*)fgmask NS_SWIFT_NAME(apply(image:fgmask:)); // // void cv::bgsegm::BackgroundSubtractorCNT::getBackgroundImage(Mat& backgroundImage) // - (void)getBackgroundImage:(Mat*)backgroundImage NS_SWIFT_NAME(getBackgroundImage(backgroundImage:)); // // int cv::bgsegm::BackgroundSubtractorCNT::getMinPixelStability() // /** * Returns number of frames with same pixel color to consider stable. */ - (int)getMinPixelStability NS_SWIFT_NAME(getMinPixelStability()); // // void cv::bgsegm::BackgroundSubtractorCNT::setMinPixelStability(int value) // /** * Sets the number of frames with same pixel color to consider stable. */ - (void)setMinPixelStability:(int)value NS_SWIFT_NAME(setMinPixelStability(value:)); // // int cv::bgsegm::BackgroundSubtractorCNT::getMaxPixelStability() // /** * Returns maximum allowed credit for a pixel in history. */ - (int)getMaxPixelStability NS_SWIFT_NAME(getMaxPixelStability()); // // void cv::bgsegm::BackgroundSubtractorCNT::setMaxPixelStability(int value) // /** * Sets the maximum allowed credit for a pixel in history. */ - (void)setMaxPixelStability:(int)value NS_SWIFT_NAME(setMaxPixelStability(value:)); // // bool cv::bgsegm::BackgroundSubtractorCNT::getUseHistory() // /** * Returns if we're giving a pixel credit for being stable for a long time. */ - (BOOL)getUseHistory NS_SWIFT_NAME(getUseHistory()); // // void cv::bgsegm::BackgroundSubtractorCNT::setUseHistory(bool value) // /** * Sets if we're giving a pixel credit for being stable for a long time. */ - (void)setUseHistory:(BOOL)value NS_SWIFT_NAME(setUseHistory(value:)); // // bool cv::bgsegm::BackgroundSubtractorCNT::getIsParallel() // /** * Returns if we're parallelizing the algorithm. */ - (BOOL)getIsParallel NS_SWIFT_NAME(getIsParallel()); // // void cv::bgsegm::BackgroundSubtractorCNT::setIsParallel(bool value) // /** * Sets if we're parallelizing the algorithm. */ - (void)setIsParallel:(BOOL)value NS_SWIFT_NAME(setIsParallel(value:)); @end NS_ASSUME_NONNULL_END