Advertisement

opencv 图像平滑化处理

阅读量:
复制代码
    #include "opencv2/imgproc/imgproc.hpp"
    #include "opencv2/highgui/highgui.hpp"
    
    using namespace std;
    using namespace cv;
    
    /// 全局变量
    int DELAY_CAPTION = 1500;
    int DELAY_BLUR = 100;
    int MAX_KERNEL_LENGTH = 31;
    
    Mat src; Mat dst;
    char window_name[] = "Filter Demo 1";
    
    /// 函数申明
    int display_caption( char* caption );
    int display_dst( int delay );
    
    /** *  main 函数
     */
    int main( int argc, char** argv )
    {
    namedWindow( window_name, WINDOW_AUTOSIZE );
    
    /// 载入原图像
    // 如果设置IMREAD_COLOR,请始终将图像转换为3通道BGR彩色图像

全部评论 (0)

还没有任何评论哟~