Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 738050b

Browse files
committed
basics png
1 parent 53a727f commit 738050b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed
1.94 MB
Loading[フレーム]

‎ch01-关于OpenCV/OpenCV图像坐标系.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
![basics](OpenCV-axis-basics.png "basics")
2+
13

24
关于图像坐标系与行列宽高的对应关系大致如下:
35
- row == height == Point.y

‎ch01-关于OpenCV/OpenCV图像坐标系_test.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
print('bgr:',b,g,r)
3636

3737
#先行后列
38+
#img[y:y+height,x:width]
3839
img[100:100 + logo.shape[0], 300:300 + logo.shape[1]] = logo[:, :, 0:3]# 两张图片的shape不一样
3940
# img[10:10+logo.shape[0],30:30+logo.shape[1],:]=logo[:,:,0:3]
4041
img[300:300 + logo.shape[1], 100:100 + logo.shape[0]] = butterfly[:, :, 0:3]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /