분류 전체보기
-
야경 사진 노이즈 제거영상처리/3D computer vision 2024. 2. 22. 23:26
야경 사진을 여러장 찍어서 denoising하는 코드를 만들었다. 1. 먼저 여러장의 사진을 최대한 같은 위치에서 찍었다. 2. ORB feature를 이용, 영상간 homography 변환을 추출, warping을 수행한다. 3. warping 된 영상을 유사도 기반으로 weight를 주어 합친다. import torch import cv2 import numpy as np import os In [ ]: ref_img=cv2.imread('20240222_190925.jpg') h=ref_img.shape[0] w=ref_img.shape[1] In [ ]: orb = cv2.ORB_create() bf = cv2.BFMatcher(cv2.NORM_HAMMING, crossCheck=True) In ..
-
numpy array slicing이 원본 크기를 넘어 섰을 때python 기초 2024. 1. 1. 00:11
numpy array를 slicing하는 데, 원본 크기보다 더 큰 범위를 slicing하여도 원데이터를 벗어나지 않는 크기로 slicing을 한다는 것을 알았다. 아래와 같이 array를 만들고 위치를 slicing하면 해당 위치의 값이 나온다. import numpy as np a=np.array([[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,32,33,34,35,36,37,38,39,40]]) print(a[1:4,3:5]) 아래와 같이 해당 위치의 sub array가 나오게 된다. [[14 15] [24 25] [34 35]] 이 때, slicing하는 범위가 기존 array..
-
pillow-simd install 에러python 기초 2023. 12. 18. 22:53
Pillow-SIMD 설치시 에러가 해결되지 않을때 아래의 경로에서 whl 파일을 바로 받아서 설치하니 해결 되었다. https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow-simd Archived: Python Extension Packages for Windows - Christoph Gohlke Archived: Python Extension Packages for Windows - Christoph Gohlke by Christoph Gohlke. Updated on 26 June 2022 at 07:27 UTC. This page provides 32 and 64-bit Windows binaries of many scientific open-source ex..
-
Handheld Multi-Frame Super-Resolution (2019)영상처리/3D computer vision 2023. 11. 23. 21:36
multi-frame super resolution 기술을 mobile phone에 이용한 기술에 대한 연구이다. 사용자의 손떨림에 의해, 핸드폰 카메라의 영상이 추가적인 sampling이 되며 이를 이용해 demosaic + Noise Reduction + Super resolution을 수행한다. .위와 같은 구조로 구동된다. - Local gradients와 Kernels은 Edge conservation을 위해 사용된다. (gradient가 큰 방향으로는 kernel의 크기를 줄임) - Alignment Vectors (optical flow)와 local statistics (영상의 local deviation 대비 frame간 color 차이) 를 통해 해당 optical flow의 신뢰도 기..
-
cupy util import errorpython 기초 2023. 11. 14. 21:51
opensource를 돌리는 과정에서 "No module named 'cupy.util' " 와 같은 에러가 발생했다. 아래를 참조해보면, cupy 버전이 바뀌면서 생긴 문제같다. cupy._util로 해당 코드를 바꾸면 동작한다고 한다. https://stackoverflow.com/questions/66421447/chainer-no-module-named-cupy-util Chainer: No module named 'cupy.util'` I am getting desperate with Chainer because I'm not able to use it with GPU for about a week now. The error I am getting: RuntimeError: CUDA enviro..
-
pip install cupy errorpython 기초 2023. 11. 14. 21:45
cupy를 설치하는 과정에서 legacy-install-failure 와 같은 메세지가 발생했다. 검색해보니 cuda 버전에 맞추어 설치를 해야 하는것 같다. 아래의 reference에 따라, 내 PC의 cuda 버전(10.2)에 맞는 command로 설치하니 해결되었다. https://docs.cupy.dev/en/stable/install.html Installation — CuPy 12.2.0 documentation Installation Requirements NVIDIA CUDA GPU with the Compute Capability 3.0 or larger. CUDA Toolkit: v10.2 / v11.0 / v11.1 / v11.2 / v11.3 / v11.4 / v11.5 / v11...
-
pyflow optical flow영상처리/3D computer vision 2023. 11. 1. 19:29
dense optical flow alogirhtm 중 성능이 좋은 classical한 algorithm을 발견했다. 아래 git으로, Ce Liu's C++ implementation of Coarse2Fine Optical Flow 를 python wrapper를 만든 것이다. https://github.com/pathak22/pyflow GitHub - pathak22/pyflow: Fast, accurate and easy to run dense optical flow with python wrapper Fast, accurate and easy to run dense optical flow with python wrapper - GitHub - pathak22/pyflow: Fast, accur..