基于图的图像分割-OpenCV源码
OpenCV在模块opencv_contrib中实现了基于图的图像分割算法,其实现和作者提供的工程源码略有差别
下面首先解析源码,然后通过示例验证分割效果
- 官网参考文档:cv::ximgproc::segmentation::GraphSegmentation Class Reference
- 头文件
segmentation.hpp - /path/to/include/opencv4/opencv2/ximgproc/segmentation.hpp - 源文件
graphsegmentation.cpp - /path/to/opencv_contrib/modules/ximgproc/src/graphsegmentation.cpp - 实现示例
graphsegmentation_demo.cpp - /path/to/opencv_contrib/modules/ximgproc/samples/graphsegmentation_demo.cpp
OpenCV源码比较复杂,抽取相应实现到GraphLib/cplusplus/samples/graphsegmentation
基于图的图像分割-工程源码
基于图的图像分割算法的作者提供了工程源码:Graph Based Image Segmentation
[C++][OpenCV]PPM文件解析.md
之前通过PPM文件解析理解了PPM文件结构,并通过Python实现了PPM文件和其他图像文件的转换。最近需要通过C++解析PPM文件,参考Graph Based Image Segmentation,最后通过opencv实现
[Jenkins]Tomcat托管
通过Tomcat托管Jenkins。当前Tomcat以普通用户tomcat身份运行
[Jenkins][GitLab][Hexo]新建Pipeline工程实现CI功能
之前通过Jenkins Freesstyle工程实现了Hexo网站的CI部署,Jenkins还提供了Pipeline方式,能够更好的模块化构建过程
Jenkins Pipeline工程配置GitLab WebHook配置Jenkinsfile脚本编辑
[Jenkins][GitLab][Hexo]新建Freestyle工程实现CI功能
之前通过Travis CI实现持续部署Hexo项目到腾讯云服务器。经过一段时间的使用,发现Travis CI传输文件到腾讯云服务器经常失败,所以打算在本地自建Jenkins,同时利用GitLab进行持续部署
实现步骤如下:
- 关闭
Travis CI触发器 - 导入
Hexo相关项目到GitLab - 新建
Jenkins Freestyle工程