티스토리 뷰
Tiled image
최종 이미지의 배경으로 사용하기 위해
하나의 이미지를 이용하여 타일 형태의 큰 이미지를 만들고자 할 때 사용하는 파이썬 코드
[원본 이미지]

[타일 형식 이미지]

def MakeTiledImage(): # 2023.11.02
imageFile1 = "./TestImage101.jpg"
image1 = cv2.imread(imageFile1)
imageX1 = image1.shape[0]
imageY1 = image1.shape[1]
rstImage = np.zeros((imageX1*2, imageY1*2, 3), dtype=np.uint8)
rstImage[0:imageX1, 0:imageY1] = image1
rstImage[imageX1:imageX1*2, imageY1:imageY1*2] = image1
cv2.imwrite("./OutImage101.jpg", rstImage)반응형
'SWDesk' 카테고리의 다른 글
| [Python4BID] 상이한 투명도로 2개의 이미지 합치기 (0) | 2023.11.03 |
|---|---|
| [Python4BID] 이미지에 동영상 덮기 (0) | 2023.11.02 |
| [Python4BID] 이미지의 일부분을 투명하게 만드는 방법 (0) | 2023.11.02 |
| [Python] DataFrame의 열에 List 배열 데이터 추가하기 (0) | 2023.10.08 |
| [Python] 하나의 슬라이드에 여러 장의 이미지를 정렬해 넣기 (0) | 2023.09.17 |
반응형
250x250
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 둎
- 치매
- 허들
- 혁신
- 배프
- 심심풀이
- 아두이노
- 치매방지
- 전압
- 빌리언트
- 혁신과허들
- ServantClock
- 전류
- arduino
- BiliChild
- 빌리칠드
- Innovations&Hurdles
- Decorator
- DYOV
- Video
- image
- BSC
- 오블완
- Innovation&Hurdles
- 티스토리챌린지
- 심심풀이치매방지기
- 절연형
- Hurdles
- bilient
- Innovations
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함

