当前位置:网站首页>Understand corners_ Align, two perspectives for viewing pixels
Understand corners_ Align, two perspectives for viewing pixels
2022-07-24 18:33:00 【blanklog】
Pixel aligning corners The concept is generally in the image Resize In the process of interpolation, we will encounter . In fact, this corresponds to two different perspectives on pixels , Affect the final coordinate mapping process .
1. How to treat pixels
Let's say I have a 5x5 Image 
Centers-aligned: Regard pixels as a square with area , The center point of the square represents this pixel . In this way, the width of the image is equal to the number of pixels
.Corners-aligned: Think of the pixel as an ideal point , The position of this point represents this pixel . In this way, the width of the image is equal to the number of pixels minus one


Different perspectives on pixels
2. Resize
When doing Resize when , The scaling relationship between the two is different
Centers-aligned:

Corners-aligned:


3X3 resize To 5X5
3. interpolation
Centers-aligned: Falling / During L sampling , The mapped coordinates will exceed the image boundary , The interpolation rules of these points will be different . As shown in the above figure, during the sampling process , The first pixel of the target image ( Green dot ) Exceed the first pixel of the original image ( Red dot ) Beyond the borders .

Corners-aligned: Because the pixel positions of the four corners are corresponding , There will be no situation beyond the boundary .
summary :
centers-gligned | corners-aligned | |
|---|---|---|
Pixels | Square with area | Ideal point |
The width of the image | Equal number of pixels | Equal to the number of pixels minus one |
Specify the scale | The number of pixels remains proportional | The number of pixels does not maintain proportion |
Boundary interpolation problem | The boundary may be beyond the image range , Interpolation may have problems | The four points are perfectly aligned , There is no interpolation problem |
边栏推荐
- L4l7 load balancing
- Mid year inventory | in 2022, PAAS will be upgraded again
- web渗透经验汇总ing
- epoch,batch_ size
- CF. Bits And Pieces(子集状压dp + 剪枝)
- mysql 配置文件
- 8. = = and = = =?
- The drop-down list component uses iscrol JS to achieve the rolling effect of the pit encountered
- 全国职业院校技能大赛网络安全竞赛——Apache安全配置详解
- 网络安全80端口—-PHP CGI参数注入执行漏洞
猜你喜欢

Ionic4 learning notes 10 rotation map of an East Project

epoch,batch_ size

Wechat applet

Typora 它依然是我心中的YYDS 最优美也是颜值最高的文档编辑神器 相信你永远不会抛弃它

MySQL - bufferpool related information

9. BOM object?

【OpenCV】—阈值化

Cf. bits and pieces (subset pressing DP + pruning)
![[record of question brushing] 20. Valid brackets](/img/81/7edc2ff0003373fe0ab2868b1a872f.png)
[record of question brushing] 20. Valid brackets

Vsftpd2.3.4 port penetration 6200 IRC_ 3281_ backdoor
随机推荐
可撤销并查集板子
Ionic4 learning notes 12 - a east project grid completes the list of goods
Pycharm configuring opencv Library
The difference between KIB and MIB and KB and MB
Example of single table query in ORM student management system
如何用WebGPU流畅渲染百万级2D物体?
XSS bypass pose summary
MySQL - bufferpool related information
4. Basic type and reference type?
Rookie colleagues cost me 2K. Did you recite the secret of salary increase? (collect it quickly!)
树链剖分板子
Common methods of array (2)
Highcharts chart and report display, export data
9. BOM object?
Template inheritance and import
Pytoch's Journey 2: gradient descent
We have to understand the four scopes: application, session, request and page
全国职业院校技能大赛网络安全竞赛之数据分析数字取证-A
线段树合并板子
网络安全80端口—-PHP CGI参数注入执行漏洞
.

