当前位置:网站首页>Opencv 9 resize size change rotate rotate blur mean (blur)
Opencv 9 resize size change rotate rotate blur mean (blur)
2022-06-13 02:29:00 【An unforgettable squirrel】
The program implements the Resize Size change Rotate rotate Blur mean value ( Fuzzy ) wave filtering
Simple code , Not in the sharp4 Test above .
Related main functions are as follows :
Resize Call the following :
Cv2.Resize(dst, dst,
new Size(src.Width + pos, src.Height + pos),
interpolation: InterpolationFlags.Cubic);
The last parameter is the interpolation method
Rotate Call the following :
var imageCenter = new Point2f(src.Cols / 2f, src.Rows / 2f);
var rotationMat = Cv2.GetRotationMatrix2D(imageCenter, angle, scale);
Cv2.WarpAffine(src, dst, rotationMat, src.Size());
First, we get the center of rotation
Then construct a structure that contains the center of rotation , angle , Construction matrix of size transformation , Finally, the mapping transformation function is called to realize the rotation operation .
Blur The call is as follows :
Cv2.GaussianBlur(dst, dst, new Size(pos, pos), sigmaX: 0);
pos Enter an integer number for , Odd number required .
边栏推荐
- [51nod.3210] binary Statistics (bit operation)
- ROS learning-7 error in custom message or service reference header file
- Configuring virtual private network FRR for Huawei equipment
- 柏瑞凱電子沖刺科創板:擬募資3.6億 汪斌華夫婦為大股東
- Priority queue with dynamically changing priority
- redis
- Swiper horizontal rotation grid
- 1000 fans ~
- [reading papers] visual convolution zfnet
- Sensor: MQ-5 gas module measures the gas value (code attached at the bottom)
猜你喜欢

【 unity】 Problems Encountered in Packaging webgl Project and their resolution Records

Mbedtls migration experience

Yovo3 and yovo3 tiny structure diagram

Huawei equipment is configured with dual reflectors to optimize the backbone layer of the virtual private network

Understand CRF
![[pytorch]fixmatch code explanation (super detailed)](/img/22/66703bea0f8ee40eceb0687fcb3ad2.jpg)
[pytorch]fixmatch code explanation (super detailed)

speech production model

Introduction to arm Cortex-M learning

02 优化微信开发者工具默认的结构
![[pytorch]fixmatch code explanation - data loading](/img/0f/1165dbe4c7410a72d74123ec52dc28.jpg)
[pytorch]fixmatch code explanation - data loading
随机推荐
Barrykay electronics rushes to the scientific innovation board: it is planned to raise 360million yuan. Mr. and Mrs. Wang Binhua are the major shareholders
Think about the possibility of attacking secure memory through mmu/tlb/cache
05 tabbar navigation bar function
【 unity】 Problems Encountered in Packaging webgl Project and their resolution Records
Is space time attention all you need for video understanding?
Leetcode 926. Flip string to monotonically increasing [prefix and]
Leetcode 450. Delete node in binary search tree [binary search tree]
redis.conf总配置详解
Flow chart of interrupt process
[learning notes] xr872 GUI littlevgl 8.0 migration (file system)
拍拍贷母公司信也季报图解:营收24亿 净利5.3亿同比降10%
Leetcode 473. Match to square [violence + pruning]
Cumulative tax law: calculate how much tax you have paid in a year
How to do Internet for small enterprises
speech production model
Opencvsharp4 handwriting recognition
Review the history of various versions of ITIL, and find the key points for the development of enterprise operation and maintenance
Basic exercises of test questions letter graphics ※
Basic exercises of test questions Fibonacci series
智能安全配电装置如何减少电气火灾事故的发生?