⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cv.hpp

📁 将OpenCV移植到DSP上
💻 HPP
📖 第 1 页 / 共 2 页
字号:
                       bool _is_separable, CvSize _ksize,                       CvPoint _anchor=cvPoint(-1,-1),                       int _border_mode=IPL_BORDER_REPLICATE,                       CvScalar _border_value=cvScalarAll(0) );    virtual void clear();    const CvMat* get_x_kernel() const { return kx; }    const CvMat* get_y_kernel() const { return ky; }    int get_x_kernel_flags() const { return kx_flags; }    int get_y_kernel_flags() const { return ky_flags; }    enum { GENERIC=0, ASYMMETRICAL=1, SYMMETRICAL=2, POSITIVE=4, SUM_TO_1=8, INTEGER=16 };    enum { NORMALIZE_KERNEL=1, FLIP_KERNEL=2 };    static void init_gaussian_kernel( CvMat* kernel, double sigma=-1 );    static void init_sobel_kernel( CvMat* _kx, CvMat* _ky, int dx, int dy, int flags=0 );    static void init_scharr_kernel( CvMat* _kx, CvMat* _ky, int dx, int dy, int flags=0 );protected:    CvMat *kx, *ky;    int kx_flags, ky_flags;};/* Derived class, for linear non-separable filtering. */class CV_EXPORTS CvLinearFilter : public CvBaseImageFilter{public:    CvLinearFilter();    CvLinearFilter( int _max_width, int _src_type, int _dst_type,                    const CvMat* _kernel,                    CvPoint _anchor=cvPoint(-1,-1),                    int _border_mode=IPL_BORDER_REPLICATE,                    CvScalar _border_value=cvScalarAll(0) );    virtual ~CvLinearFilter();    virtual void init( int _max_width, int _src_type, int _dst_type,                       const CvMat* _kernel,                       CvPoint _anchor=cvPoint(-1,-1),                       int _border_mode=IPL_BORDER_REPLICATE,                       CvScalar _border_value=cvScalarAll(0) );    /* dummy method to avoid compiler warnings */    virtual void init( int _max_width, int _src_type, int _dst_type,                       bool _is_separable, CvSize _ksize,                       CvPoint _anchor=cvPoint(-1,-1),                       int _border_mode=IPL_BORDER_REPLICATE,                       CvScalar _border_value=cvScalarAll(0) );    virtual void clear();    const CvMat* get_kernel() const { return kernel; }    uchar* get_kernel_sparse_buf() { return k_sparse; }    int get_kernel_sparse_count() const { return k_sparse_count; }protected:    CvMat *kernel;    uchar* k_sparse;    int k_sparse_count;};/* Box filter ("all 1's", optionally normalized) filter. */class CV_EXPORTS CvBoxFilter : public CvBaseImageFilter{public:    CvBoxFilter();    CvBoxFilter( int _max_width, int _src_type, int _dst_type,                 bool _normalized, CvSize _ksize,                 CvPoint _anchor=cvPoint(-1,-1),                 int _border_mode=IPL_BORDER_REPLICATE,                 CvScalar _border_value=cvScalarAll(0) );    virtual void init( int _max_width, int _src_type, int _dst_type,                       bool _normalized, CvSize _ksize,                       CvPoint _anchor=cvPoint(-1,-1),                       int _border_mode=IPL_BORDER_REPLICATE,                       CvScalar _border_value=cvScalarAll(0) );    virtual ~CvBoxFilter();    bool is_normalized() const { return normalized; }    double get_scale() const { return scale; }    uchar* get_sum_buf() { return sum; }    int* get_sum_count_ptr() { return &sum_count; }protected:    virtual void start_process( CvSlice x_range, int width );    uchar* sum;    int sum_count;    bool normalized;    double scale;};/* Laplacian operator: (d2/dx + d2/dy)I. */class CV_EXPORTS CvLaplaceFilter : public CvSepFilter{public:    CvLaplaceFilter();    CvLaplaceFilter( int _max_width, int _src_type, int _dst_type,                     bool _normalized, int _ksize,                     int _border_mode=IPL_BORDER_REPLICATE,                     CvScalar _border_value=cvScalarAll(0) );    virtual ~CvLaplaceFilter();    virtual void init( int _max_width, int _src_type, int _dst_type,                       bool _normalized, int _ksize,                       int _border_mode=IPL_BORDER_REPLICATE,                       CvScalar _border_value=cvScalarAll(0) );    /* dummy methods to avoid compiler warnings */    virtual void init( int _max_width, int _src_type, int _dst_type,                       bool _is_separable, CvSize _ksize,                       CvPoint _anchor=cvPoint(-1,-1),                       int _border_mode=IPL_BORDER_REPLICATE,                       CvScalar _border_value=cvScalarAll(0) );    virtual void init( int _max_width, int _src_type, int _dst_type,                       const CvMat* _kx, const CvMat* _ky,                       CvPoint _anchor=cvPoint(-1,-1),                       int _border_mode=IPL_BORDER_REPLICATE,                       CvScalar _border_value=cvScalarAll(0) );    bool is_normalized() const { return normalized; }    bool is_basic_laplacian() const { return basic_laplacian; }protected:    void get_work_params();    bool basic_laplacian;    bool normalized;};/* basic morphological operations: erosion & dilation */class CV_EXPORTS CvMorphology : public CvBaseImageFilter{public:    CvMorphology();    CvMorphology( int _operation, int _max_width, int _src_dst_type,                  int _element_shape, CvMat* _element,                  CvSize _ksize=cvSize(0,0), CvPoint _anchor=cvPoint(-1,-1),                  int _border_mode=IPL_BORDER_REPLICATE,                  CvScalar _border_value=cvScalarAll(0) );    virtual ~CvMorphology();    virtual void init( int _operation, int _max_width, int _src_dst_type,                       int _element_shape, CvMat* _element,                       CvSize _ksize=cvSize(0,0), CvPoint _anchor=cvPoint(-1,-1),                       int _border_mode=IPL_BORDER_REPLICATE,                       CvScalar _border_value=cvScalarAll(0) );    /* dummy method to avoid compiler warnings */    virtual void init( int _max_width, int _src_type, int _dst_type,                       bool _is_separable, CvSize _ksize,                       CvPoint _anchor=cvPoint(-1,-1),                       int _border_mode=IPL_BORDER_REPLICATE,                       CvScalar _border_value=cvScalarAll(0) );    virtual void clear();    const CvMat* get_element() const { return element; }    int get_element_shape() const { return el_shape; }    int get_operation() const { return operation; }    uchar* get_element_sparse_buf() { return el_sparse; }    int get_element_sparse_count() const { return el_sparse_count; }    enum { RECT=0, CROSS=1, ELLIPSE=2, CUSTOM=100, BINARY = 0, GRAYSCALE=256 };    enum { ERODE=0, DILATE=1 };    static void init_binary_element( CvMat* _element, int _element_shape,                                     CvPoint _anchor=cvPoint(-1,-1) );protected:    void start_process( CvSlice x_range, int width );    int fill_cyclic_buffer( const uchar* src, int src_step,                            int y0, int y1, int y2 );    uchar* el_sparse;    int el_sparse_count;    CvMat *element;    int el_shape;    int operation;};#endif /* __cplusplus */#endif /* _CV_HPP_ *//* End of file. */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -