当前位置:网站首页>gocv边界填充
gocv边界填充
2022-07-02 06:30:00 【图图是只猫】
gocv边界填充
创建目标图片
targetImg := gocv.NewMatWithSize(read.Rows(),read.Cols(),gocv.MatTypeCV8UC3)
进行边界填充
value := color.RGBA{
R: 255,G: 255,B: 255}
gocv.CopyMakeBorder(read,&targetImg,50,50,50,50,gocv.BorderReflect,value)
展示图片
window.IMShow(targetImg)
window.WaitKey(0)
gocv.CopyMakeBorder()函数说明
- 参数1: 源图片
- 参数2: 目标图片
- 参数3,4,5,6 :图片上,下,左,右填充大小
- 参数7,8:https://blog.csdn.net/qq_35789421/article/details/89404224
边栏推荐
- 群辉 NAS 配置 iSCSI 存储
- 2022 Heilongjiang latest food safety administrator simulation exam questions and answers
- Web security -- Logical ultra vires
- Use Wireshark to grab TCP three handshakes
- 链表经典面试题(反转链表,中间节点,倒数第k个节点,合并分割链表,删除重复节点)
- Use C language to receive JSON strings
- Global and Chinese market of electric cheese grinder 2022-2028: Research Report on technology, participants, trends, market size and share
- TCP/IP—传输层
- Force buckle method summary: sliding window
- File upload and download performance test based on the locust framework
猜你喜欢
ARP及ARP欺骗
Qunhui NAS configuring iSCSI storage
Matlab mathematical modeling tool
ICMP Protocol
HackTheBox-Gunship
Use Wireshark to grab TCP three handshakes
Sqli labs (post type injection)
Smart agriculture solutions smart agriculture system development
2022 Heilongjiang's latest eight member (Safety Officer) simulated test question bank and answers
Tcp/ip - transport layer
随机推荐
类和对象(类和类的实例化,this,static关键字,封装)
File upload and download performance test based on the locust framework
Tcp/ip - transport layer
Nacos download, start and configure MySQL database
Minecraft模组服开服
k8s入门:Helm 构建 MySQL
Minecraft群组服开服
Analysis of the use of comparable, comparator and clonable interfaces
When a custom exception encounters reflection
OpenShift 容器平台社区版 OKD 4.10.0部署
Force deduction method summary: find classes
CarSim learning experience - rough translation 1
Openshift deployment application
Web安全--核心防御机制
程序猿学英语-指令式编程
The best blog to explain the basics of compilation (share)
PCL calculates the intersection of three mutually nonparallel planes
One of the reasons for WCF update service reference error
cve_ 2019_ 0708_ bluekeep_ Rce vulnerability recurrence
The source code of the live app. When the verification method is mailbox verification, the verification code is automatically sent to the entered mailbox