opncv学习-imgprocess- Laplacian算子
来源:互联网 发布:淘宝上活动技巧 编辑:程序博客网 时间:2024/06/05 03:01
Laplacian算子是求图像的二阶导,跟sobel算子很相似。代码如下
#include "opencv2/imgproc/imgproc.hpp"#include "opencv2/highgui/highgui.hpp"#include <stdlib.h>#include <stdio.h>using namespace cv;/** @function main */int main( int argc, char** argv ){Mat src, src_gray, dst;int kernel_size = 3;int scale = 1;int delta = 0;int ddepth = CV_16S;char* window_name = "Laplace Demo";int c;/// Load an imagesrc = imread( argv[1] );if( !src.data ){ return -1; }/// Remove noise by blurring with a Gaussian filterGaussianBlur( src, src, Size(3,3), 0, 0, BORDER_DEFAULT );/// Convert the image to grayscalecvtColor( src, src_gray, CV_RGB2GRAY );/// Create windownamedWindow( window_name, CV_WINDOW_AUTOSIZE );/// Apply Laplace functionMat abs_dst;Laplacian( src_gray, dst, ddepth, kernel_size, scale, delta, BORDER_DEFAULT );convertScaleAbs( dst, abs_dst );/// Show what you gotimshow( window_name, abs_dst );waitKey(0);return 0;}
- opncv学习-imgprocess- Laplacian算子
- opencv学习-imgprocess- sobel算子
- Laplacian算子
- opencv3学习之边缘检测(Canny/Sobel/Laplacian算子)
- laplacian算子的运用
- laplacian算子的推导
- Laplacian算子图像提升
- Laplacian/拉普拉斯算子
- opencv Laplacian算子
- Opencv Laplacian算子
- OPNCV
- vim+python+OpenCV学习七 : Sobel算子、Laplacian算子和Canny边缘检测
- opencv学习-imgprocess-滤波
- opencv学习-imgprocess-Remapping
- opencv学习-imgprocess-直方图
- Laplace算子和Laplacian矩陣
- OpenCV函数 Laplacian 算子实现
- Laplacian算子的使用Opencv
- Project Euler problem19
- PHP 上传文件故障排除
- Java内存管理-Permanent Space
- Android4.1中会被系统拦截的InputEent
- oracle数据库启动错误 SP2-1503:无法初始化oracle调用界面
- opncv学习-imgprocess- Laplacian算子
- Cocos2d-x 粒子系统
- 一个有爱的国企经理
- SEO这门学科入门并不难,难的是培养SEO思维。
- 将博客内容搬至CSDN
- i++ ++i
- 常用系统管理命令
- iOS 委托模式
- ios ARC