当前位置:网站首页>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
边栏推荐
- Driving test Baodian and its spokesperson Huang Bo appeared together to call for safe and civilized travel
- C language custom type enumeration, Union (clever use of enumeration, calculation of union size)
- 用数字 5,5,5,1 ,进行四则运算,每个数字当且仅当用一次,要求运算结果值为 24
- C language replaces spaces in strings with%20
- Shortcut key to comment code and cancel code in idea
- Openshift build image
- Call Stack
- c语言将字符串中的空格替换成%20
- Realization of basic function of sequence table
- Implementation of bidirectional linked list (simple difference, connection and implementation between bidirectional linked list and unidirectional linked list)
猜你喜欢
CarSim learning experience - rough translation 1
Kubesphere virtualization KSV installation experience
Honeypot attack and defense drill landing application scheme
Illegal use of crawlers, an Internet company was terminated, the police came to the door, and 23 people were taken away
Minecraft group service opening
DWORD ptr[]
Installation and use of simple packaging tools
Chrome debugging
What is SQL injection
sqli-labs第8关(布尔盲注)
随机推荐
Minecraft插件服开服
The source code of the live app. When the verification method is mailbox verification, the verification code is automatically sent to the entered mailbox
Installation and use of simple packaging tools
Generate database documents with one click, which can be called swagger in the database industry
Dip1000 runaway
sqli-labs第8关(布尔盲注)
Using C language to realize MySQL true paging
Hcia - Application Layer
2022 Heilongjiang's latest eight member (Safety Officer) simulated test question bank and answers
使用wireshark抓取Tcp三次握手
Smart agriculture solutions smart agriculture system development
Sqli labs Level 2
Matlab-其它
Flex layout
顺序表基本功能函数的实现
ARP and ARP Spoofing
PCL calculates the intersection of three mutually nonparallel planes
How to uninstall SQL Server cleanly
Qunhui NAS configuring iSCSI storage
Realization of basic function of sequence table