当前位置:网站首页>Gocv boundary fill
Gocv boundary fill
2022-07-02 08:50:00 【Tutu is a cat】
gocv Border filling
Create target picture
targetImg := gocv.NewMatWithSize(read.Rows(),read.Cols(),gocv.MatTypeCV8UC3)
Fill the boundary
value := color.RGBA{
R: 255,G: 255,B: 255}
gocv.CopyMakeBorder(read,&targetImg,50,50,50,50,gocv.BorderReflect,value)
Show pictures
window.IMShow(targetImg)
window.WaitKey(0)
gocv.CopyMakeBorder() Function description
- Parameters 1: Source image
- Parameters 2: Target pictures
- Parameters 3,4,5,6 : On the picture , Next , Left , Right fill size
- Parameters 7,8:https://blog.csdn.net/qq_35789421/article/details/89404224
边栏推荐
- IP协议与IP地址
- Classes and objects (instantiation of classes and classes, this, static keyword, encapsulation)
- 图像变换,转置
- Detailed explanation of NIN network
- Luogu greedy part of the backpack line segment covers the queue to receive water
- 什么是SQL注入
- C Baidu map, Gaode map, Google map (GPS) longitude and latitude conversion
- Oracle 相关统计
- STM32 new project (refer to punctual atom)
- ICMP Protocol
猜你喜欢
随机推荐
Sentinel 简单使用
sqli-labs第1关
Qunhui NAS configuring iSCSI storage
Essay: RGB image color separation (with code)
sqli-labs第8关(布尔盲注)
一个经典约瑟夫问题的分析与解答
ARP及ARP欺骗
Qt的connect函数和disconnect函数
随笔:RGB图像颜色分离(附代码)
Realization of basic function of sequence table
Gateway 简单使用
sqli-labs第2关
Analysis of the use of comparable, comparator and clonable interfaces
OpenShift 容器平台社区版 OKD 4.10.0部署
文件上传-upload-labs
TCP/IP—传输层
Programming ape learning English - imperative programming
Solution of Xiaomi TV's inability to access computer shared files
Use of libusb
Luogu greedy part of the backpack line segment covers the queue to receive water







